Skip to content

Commit

Permalink
Fix motor type ignored on export #332
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpenAalAlex committed Dec 20, 2023
1 parent 56d46c7 commit b42c988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phobos/blender/io/blender2phobos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b42c988

Please sign in to comment.