We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25af50a commit 6e0f241Copy full SHA for 6e0f241
1 file changed
src/bonsai/bonsai/bim/module/drawing/decoration.py
@@ -1787,7 +1787,7 @@ def is_camera_moved(self) -> bool:
1787
1788
# Handle both old float64 and new float32 checksums for version compatibility
1789
rot_checksum_bytes: bytes = eval(DecoratorData.camera_rotation_checksum)
1790
- rot_check = tool.Blender.np_frombuffer_legacy(rot_checksum_bytes, 9)
+ rot_check = tool.Blender.np_frombuffer_legacy(rot_checksum_bytes, 9).reshape(3, 3)
1791
rot_real = tool.Blender.np_array_legacy(obj.matrix_world.to_3x3())
1792
rot_dot = np.dot(rot_check, rot_real.T)
1793
angle_rad = np.arccos(np.clip((np.trace(rot_dot) - 1) / 2, -1, 1))
0 commit comments