mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Locked elements are now blocked from being duplicated too
This commit is contained in:
@@ -874,10 +874,9 @@ class OverrideDuplicateMove(bpy.types.Operator):
|
|||||||
)
|
)
|
||||||
obj.select_set(False)
|
obj.select_set(False)
|
||||||
continue # For now, don't copy drawings until we stabilise a bit more. It's tricky.
|
continue # For now, don't copy drawings until we stabilise a bit more. It's tricky.
|
||||||
elif element.is_a("IfcProject"):
|
elif tool.Geometry.is_locked(element):
|
||||||
self.report({"INFO"}, "Did not duplicate. IFC can only have one project.")
|
|
||||||
obj.select_set(False)
|
obj.select_set(False)
|
||||||
continue # Only one IfcProject is allowed.
|
continue
|
||||||
|
|
||||||
linked_non_ifc_object = linked and not element
|
linked_non_ifc_object = linked and not element
|
||||||
|
|
||||||
@@ -944,6 +943,7 @@ class OverrideDuplicateMove(bpy.types.Operator):
|
|||||||
tool.Root.recreate_decompositions(decomposition_relationships, old_to_new)
|
tool.Root.recreate_decompositions(decomposition_relationships, old_to_new)
|
||||||
OverrideDuplicateMove.remove_linked_aggregate_data(old_to_new)
|
OverrideDuplicateMove.remove_linked_aggregate_data(old_to_new)
|
||||||
bonsai.bim.handler.refresh_ui_data()
|
bonsai.bim.handler.refresh_ui_data()
|
||||||
|
tool.Root.reload_grid_decorator()
|
||||||
return old_to_new
|
return old_to_new
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user