src/ui/objecteditor.cpp

changeset 232
8efa3a33172e
parent 200
ca23936b455b
child 249
37d3c819cafa
--- a/src/ui/objecteditor.cpp	Wed Jun 15 19:47:02 2022 +0300
+++ b/src/ui/objecteditor.cpp	Mon Jun 20 02:04:51 2022 +0300
@@ -12,7 +12,8 @@
 	const glm::vec3*,
 	const glm::mat4*,
 	const QString*,
-	ldraw::Color>;
+	ldraw::Color,
+	const CircularFraction*>;
 
 enum PropertyKey
 {
@@ -27,6 +28,7 @@
 	Name,
 	Text,
 	Code,
+	Fraction,
 };
 
 std::map<PropertyKey, PropertyValue> getProperties(const ModelElement& element)
@@ -63,6 +65,11 @@
 			result[Name] = &ref.name;
 			result[Color] = ref.color;
 		},
+		[&](const Colored<CircularPrimitive>& circ) {
+			result[Transformation] = &circ.transformation;
+			result[Fraction] = &circ.fraction;
+			result[Color] = circ.color;
+		},
 		[&](Empty) {},
 		[&](const Comment& comment) {
 			result[Text] = &comment.text;

mercurial