Skip to content

Commit

Permalink
Merge pull request #1142 from tomole444/euler-rotation-fix
Browse files Browse the repository at this point in the history
Make sure object rotation is set in XYZ-Euler coordinates
  • Loading branch information
cornerfarmer authored Aug 16, 2024
2 parents 0de4528 + 0dc761d commit 470b87c
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 470b87c

Please sign in to comment.