Skip to content

Commit 6e0f241

Browse files
committed
Minor fix to regression in 95480a2 where reshaping to a 3x3 matrix was removed
1 parent 25af50a commit 6e0f241

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bonsai/bonsai/bim/module/drawing/decoration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ def is_camera_moved(self) -> bool:
17871787

17881788
# Handle both old float64 and new float32 checksums for version compatibility
17891789
rot_checksum_bytes: bytes = eval(DecoratorData.camera_rotation_checksum)
1790-
rot_check = tool.Blender.np_frombuffer_legacy(rot_checksum_bytes, 9)
1790+
rot_check = tool.Blender.np_frombuffer_legacy(rot_checksum_bytes, 9).reshape(3, 3)
17911791
rot_real = tool.Blender.np_array_legacy(obj.matrix_world.to_3x3())
17921792
rot_dot = np.dot(rot_check, rot_real.T)
17931793
angle_rad = np.arccos(np.clip((np.trace(rot_dot) - 1) / 2, -1, 1))

0 commit comments

Comments
 (0)