fixed rendering of bézier curves

Fri, 22 Jun 2018 14:46:30 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 22 Jun 2018 14:46:30 +0300
changeset 1423
6608db56b047
parent 1422
bf373bd83c1f
child 1424
737df8e904af

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; }

mercurial