src/linetypes/subfilereference.cpp

changeset 140
2f383e88acf4
parent 139
72098474d362
child 141
185eb297dc1e
--- a/src/linetypes/subfilereference.cpp	Wed Sep 22 14:03:43 2021 +0300
+++ b/src/linetypes/subfilereference.cpp	Mon Sep 27 21:04:45 2021 +0300
@@ -36,7 +36,13 @@
 
 QString ldraw::SubfileReference::textRepresentation() const
 {
-	return referenceName + " " + utility::vertexToStringParens(this->position());
+	QString out;
+	if (this->isInverted)
+	{
+		out += "0 BFC INVERTNEXT\r\n";
+	}
+	out += referenceName + " " + utility::vertexToStringParens(this->position());
+	return out;
 }
 
 void ldraw::SubfileReference::getPolygons

mercurial