This commit is contained in:
Andrej730
2023-08-30 17:43:11 +05:00
parent a2bb015c79
commit 3e45f39ea2
+2 -1
View File
@@ -1850,7 +1850,8 @@ class Drawing(blenderbim.core.tool.Drawing):
break break
return sheet_references return sheet_references
def get_camera_matrix(self, camera): @classmethod
def get_camera_matrix(cls, camera):
matrix_world = camera.matrix_world.copy().normalized() matrix_world = camera.matrix_world.copy().normalized()
location, rotation, scale = matrix_world.decompose() location, rotation, scale = matrix_world.decompose()
if scale.x < 0 or scale.y < 0 or scale.z < 0: if scale.x < 0 or scale.y < 0 or scale.z < 0: