mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Fixed error adding a boolean
It occured if active object was IFC object and second selected object was just Blender object.
This commit is contained in:
@@ -521,6 +521,7 @@ class AddBoolean(Operator, tool.Ifc.Operator):
|
|||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
if element2 and not element1:
|
if element2 and not element1:
|
||||||
obj1, obj2 = obj2, obj1
|
obj1, obj2 = obj2, obj1
|
||||||
|
element1, element2 = element2, element1
|
||||||
if not obj1.data or not hasattr(obj1.data, "BIMMeshProperties"):
|
if not obj1.data or not hasattr(obj1.data, "BIMMeshProperties"):
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
representation = tool.Ifc.get().by_id(obj1.data.BIMMeshProperties.ifc_definition_id)
|
representation = tool.Ifc.get().by_id(obj1.data.BIMMeshProperties.ifc_definition_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user