This commit is contained in:
Andrej730
2024-08-22 17:57:19 +05:00
parent 358c834427
commit 7ea60742d6
+1 -1
View File
@@ -248,7 +248,7 @@ class Drawing(bonsai.core.tool.Drawing):
@classmethod
def create_camera(
cls, name: str, matrix: Matrix, location_hint: Literal["PERPSECTIVE", "ORTHOGRAPHIC"]
cls, name: str, matrix: Matrix, location_hint: Literal["PERSPECTIVE", "ORTHOGRAPHIC"]
) -> bpy.types.Object:
camera = bpy.data.objects.new(name, bpy.data.cameras.new(name))
camera.location = (0, 0, 1.5) # The view shall be 1.5m above the origin