src/layers/edittools.cpp

changeset 372
b2914aaeec1a
parent 333
07e65a4c6611
child 374
75efc3ba5a56
equal deleted inserted replaced
371:171d3f9638a9 372:b2914aaeec1a
200 for (const std::vector<glm::vec3>& points : polygonsToBeInserted(action)) { 200 for (const std::vector<glm::vec3>& points : polygonsToBeInserted(action)) {
201 if (points.size() == 2) { 201 if (points.size() == 2) {
202 drawWorldPolyline(painter, points, renderer); 202 drawWorldPolyline(painter, points, renderer);
203 } 203 }
204 else { 204 else {
205 if (worldPolygonWinding(points, this->renderer) == Winding::Clockwise) { 205 if (worldPolygonWinding(points, this->renderer) == winding_e::clockwise) {
206 painter->setBrush(pens.greenPolygonBrush); 206 painter->setBrush(pens.greenPolygonBrush);
207 } 207 }
208 else { 208 else {
209 painter->setBrush(pens.redPolygonBrush); 209 painter->setBrush(pens.redPolygonBrush);
210 } 210 }

mercurial