Skip to content

Commit

Permalink
Merge pull request #343 from AlpenAalAlex/issue332-Add-motor-with-Joi…
Browse files Browse the repository at this point in the history
…ntController

Fix motor type ignored on export #332
  • Loading branch information
hwiedPro authored Feb 7, 2024
2 parents 757d7b5 + b42c988 commit 9952888
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 9952888

Please sign in to comment.