diff -r 2f383e88acf4 -r 185eb297dc1e src/linetypes/conditionaledge.cpp --- a/src/linetypes/conditionaledge.cpp Mon Sep 27 21:04:45 2021 +0300 +++ b/src/linetypes/conditionaledge.cpp Tue Sep 28 00:10:29 2021 +0300 @@ -13,3 +13,14 @@ { return Type::ConditionalEdge; } + +QString ldraw::ConditionalEdge::toLDrawCode() const +{ + return utility::format( + "5 %1 %2 %3 %4 %5", + this->colorIndex.index, + utility::vertexToString(this->points[0]), + utility::vertexToString(this->points[1]), + utility::vertexToString(this->points[2]), + utility::vertexToString(this->points[3])); +}