Fri, 22 Jun 2018 14:46:30 +0300
fixed rendering of bézier curves
src/linetypes/modelobject.cpp | file | annotate | diff | comparison | revisions | |
src/linetypes/modelobject.h | file | annotate | diff | comparison | revisions |
--- a/src/linetypes/modelobject.cpp Fri Jun 22 14:33:09 2018 +0300 +++ b/src/linetypes/modelobject.cpp Fri Jun 22 14:46:30 2018 +0300 @@ -465,6 +465,11 @@ return Vertex(); } +bool LDBezierCurve::isRasterizable() const +{ + return true; +} + void LDBezierCurve::rasterize(DocumentManager* context, Winding winding, Model& model, bool, bool) { QVector<LDPolygon> polygons = rasterizePolygons(context, winding);
--- a/src/linetypes/modelobject.h Fri Jun 22 14:33:09 2018 +0300 +++ b/src/linetypes/modelobject.h Fri Jun 22 14:46:30 2018 +0300 @@ -221,6 +221,7 @@ virtual QString asText() const override; Vertex pointAt (qreal t) const; + bool isRasterizable() const override; void rasterize(DocumentManager*context, Winding winding, Model&, bool, bool) override; QVector<LDPolygon> rasterizePolygons(DocumentManager*, Winding) override; int numVertices() const override { return 4; }