From b42c9887bf4c1bc4df3b9a0ff383e2835a0e11b0 Mon Sep 17 00:00:00 2001 From: Alex Zastrow Date: Wed, 20 Dec 2023 14:34:36 +0100 Subject: [PATCH] Fix motor type ignored on export #332 --- phobos/blender/io/blender2phobos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phobos/blender/io/blender2phobos.py b/phobos/blender/io/blender2phobos.py index 0cc600dd..a1d34c80 100644 --- a/phobos/blender/io/blender2phobos.py +++ b/phobos/blender/io/blender2phobos.py @@ -684,6 +684,8 @@ def deriveMotor(obj): annotations.pop("name") if "joint" in annotations: annotations.pop("joint") + if obj.get("motor/type", None): + annotations["type"] = obj.get("motor/type") return representation.Motor( name=obj.get("motor/name", obj.name), joint=obj.get("joint/name", obj.name),