This commit is contained in:
Andrej730
2024-10-29 11:45:04 +05:00
parent cf0a4e2bde
commit bfa2852ca9
2 changed files with 2 additions and 1 deletions
@@ -187,6 +187,7 @@ class RemoveOpening(bpy.types.Operator, tool.Ifc.Operator):
building_obj = tool.Ifc.get_object(building_element)
if building_obj and building_obj.data:
representation = tool.Geometry.get_active_representation(building_obj)
assert representation
bonsai.core.geometry.switch_representation(
tool.Ifc,
tool.Geometry,
+1 -1
View File
@@ -1047,7 +1047,7 @@ class Restriction:
class Result:
def __init__(self, is_pass, reason=None):
def __init__(self, is_pass: bool, reason: Optional[dict[str, Any]] = None):
self.is_pass = is_pass
self.reason = reason