This commit is contained in:
Andrej730
2025-08-18 19:36:36 +05:00
parent c4d54f7709
commit 2951aecc14
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -600,7 +600,7 @@ class Blender(bonsai.core.tool.Blender):
return op, row
@classmethod
def get_object_bounding_box(cls, obj: bpy.types.Object) -> dict:
def get_object_bounding_box(cls, obj: bpy.types.Object) -> dict[str, Union[tuple[float, float, float], Vector]]:
"""Returns dict with local min and max x, y, z values for the object.
Careful with using this method for objects in EDIT mode because
+3 -1
View File
@@ -782,7 +782,9 @@ class Model(bonsai.core.tool.Model):
return "PROFILE"
@classmethod
def get_wall_axis(cls, obj: bpy.types.Object, layers: Optional[dict[str, Any]] = None) -> dict[str, list[Vector]]:
def get_wall_axis(
cls, obj: bpy.types.Object, layers: Optional[MaterialLayerParameters] = None
) -> dict[str, list[Vector]]:
"""Each item of a resulting dictionary is a list of 2 2D vectors."""
x_values = [v[0] for v in obj.bound_box]
min_x = min(x_values)