src/parser.cpp

changeset 1408
0d6162662040
parent 1407
22bc5862cb56
--- a/src/parser.cpp	Sun Jun 17 17:07:29 2018 +0300
+++ b/src/parser.cpp	Tue Jun 19 21:49:21 2018 +0300
@@ -268,7 +268,7 @@
 		}
 		*/
 
-		if (invertNext and object->type() == LDObjectType::SubfileReference)
+		if (invertNext and object->isRasterizable())
 			object->setInverted(true);
 
 		invertNext = false;
@@ -392,7 +392,7 @@
 
 				matrix.optimize();
 				static const QRegExp circularPrimitiveRegexp {
-					R"((?:(\d+)\\)?(\d+)-(\d+)(cyli|edge|disc|ndis|cylc|cylo)\.dat)"
+					R"((?:(\d+)\\)?(\d+)-(\d+)(cyli|edge|disc|ndis|cylc|cylo|chrd)\.dat)"
 				};
 				LDObject* obj;
 
@@ -419,6 +419,8 @@
 						type = PrimitiveModel::CylinderClosed;
 					else if (stem == "cylo")
 						type = PrimitiveModel::CylinderOpen;
+					else if (stem == "chrd")
+						type = PrimitiveModel::Chord;
 
 					obj = model.emplaceAt<LDCircularPrimitive>(
 						position,

mercurial