--- a/src/ldrawalgorithm.cpp Mon Jul 04 15:37:22 2022 +0300 +++ b/src/ldrawalgorithm.cpp Mon Jul 04 19:53:13 2022 +0300 @@ -20,6 +20,7 @@ std::vector<ModelAction> ldraw::makeUnofficial(const Model* model) { std::vector<ModelAction> actions; +#if 0 if (model->size() >= 4) { if (const Comment* comment = std::get_if<Comment>(&(*model)[3])) { const QString& body = comment->text; @@ -41,28 +42,6 @@ } } } +#endif return actions; } - -ModelElement inverted(const ModelElement& element) -{ - return std::visit(overloaded{ - [](Colored<SubfileReference> ref) -> ModelElement { - 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; - }, - [](Colored<Quadrilateral> quad) -> ModelElement { - std::swap(quad.p2, quad.p4); - return quad; - }, - [](const ModelElement& x) { return x; } - }, element); -}