Skip to content

Commit

Permalink
Make sure object rotation is set in XYZ-Euler coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomole444 committed Aug 14, 2024
1 parent 0de4528 commit 0dc761d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blenderproc/python/types/EntityUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def set_rotation_euler(self, rotation_euler: Union[list, Euler, np.ndarray], fra
:param frame: The frame number which the value should be set to. If None is given, the current
frame number is used.
"""
#Make sure object rotation is set in XYZ-Euler coordinates
self.blender_obj.rotation_mode = "XYZ"
self.blender_obj.rotation_euler = rotation_euler
Utility.insert_keyframe(self.blender_obj, "rotation_euler", frame)

Expand Down

0 comments on commit 0dc761d

Please sign in to comment.