Fix invertnext not working with circular primitives

Wed, 22 Jun 2022 16:13:01 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Wed, 22 Jun 2022 16:13:01 +0300
changeset 248
29986dfd1750
parent 247
07ad61423c3c
child 249
37d3c819cafa

Fix invertnext not working with circular primitives

src/ldrawalgorithm.cpp file | annotate | diff | comparison | revisions
--- a/src/ldrawalgorithm.cpp	Wed Jun 22 16:12:28 2022 +0300
+++ b/src/ldrawalgorithm.cpp	Wed Jun 22 16:13:01 2022 +0300
@@ -54,6 +54,10 @@
 			ref.inverted = not ref.inverted;
 			return ref;
 		},
+		[](Colored<CircularPrimitive> circ) -> ModelElement {
+			circ.inverted = not circ.inverted;
+			return circ;
+		},
 		[](Colored<Triangle> triangle) -> ModelElement {
 			std::swap(triangle.p1, triangle.p2);
 			return triangle;

mercurial