Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/tool_polygon/kis_tool_polygon.cc
Context not available. | |||||
59 | if (!blockUntilOperationsFinished()) return; | 59 | if (!blockUntilOperationsFinished()) return; | ||
---|---|---|---|---|---|
60 | 60 | | |||
61 | if (image()) { | 61 | if (image()) { | ||
62 | KisRecordedPathPaintAction linePaintAction(KisNodeQueryPath::absolutePath(currentNode()), currentPaintOpPreset()); | 62 | KisRecordedPathPaintAction linePaintAction(KisNodeQueryPath::absolutePath(currentNode()), | ||
63 | currentPaintOpPreset(), | ||||
64 | KisDistanceInitInfo()); | ||||
63 | setupPaintAction(&linePaintAction); | 65 | setupPaintAction(&linePaintAction); | ||
64 | linePaintAction.addPolyLine(points.toList()); | 66 | linePaintAction.addPolyLine(points.toList()); | ||
65 | linePaintAction.addLine(KisPaintInformation(points.last()), KisPaintInformation(points.first())); | 67 | linePaintAction.addLine(KisPaintInformation(points.last()), KisPaintInformation(points.first())); | ||
Context not available. |