mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
IFC Join - support joining non-ifc Blender objects into representation items
Short demo - https://imgur.com/a/o9MJiIr
This commit is contained in:
@@ -1591,6 +1591,9 @@ class OverrideJoin(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if selected_obj != self.target:
|
if selected_obj != self.target:
|
||||||
tool.Geometry.dissolve_triangulated_edges(selected_obj)
|
tool.Geometry.dissolve_triangulated_edges(selected_obj)
|
||||||
joined_ifc_item_objs.append(selected_obj)
|
joined_ifc_item_objs.append(selected_obj)
|
||||||
|
elif not tool.Ifc.get_entity(selected_obj) and selected_obj.type == self.target_type:
|
||||||
|
# Allow joining with non-ifc Blender objects.
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
selected_obj.select_set(False)
|
selected_obj.select_set(False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user