mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Fix #4239. Stop users from duplicating IfcProject.
This commit is contained in:
@@ -765,8 +765,11 @@ class OverrideDuplicateMove(bpy.types.Operator):
|
|||||||
|
|
||||||
for obj in objects_to_duplicate:
|
for obj in objects_to_duplicate:
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if element and element.is_a("IfcAnnotation") and element.ObjectType == "DRAWING":
|
if element:
|
||||||
continue # For now, don't copy drawings until we stabilise a bit more. It's tricky.
|
if element.is_a("IfcAnnotation") and element.ObjectType == "DRAWING":
|
||||||
|
continue # For now, don't copy drawings until we stabilise a bit more. It's tricky.
|
||||||
|
elif element.is_a("IfcProject"):
|
||||||
|
continue # Only one IfcProject is allowed.
|
||||||
|
|
||||||
linked_non_ifc_object = linked and not element
|
linked_non_ifc_object = linked and not element
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user