mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Prevent copying globalids to selected objects as it makes no sense
This commit is contained in:
@@ -110,8 +110,7 @@ def draw_attribute(
|
|||||||
|
|
||||||
if attribute.name == "GlobalId":
|
if attribute.name == "GlobalId":
|
||||||
layout.operator("bim.generate_global_id", icon="FILE_REFRESH", text="")
|
layout.operator("bim.generate_global_id", icon="FILE_REFRESH", text="")
|
||||||
|
elif copy_operator:
|
||||||
if copy_operator:
|
|
||||||
op = layout.operator(f"{copy_operator}", text="", icon="COPYDOWN")
|
op = layout.operator(f"{copy_operator}", text="", icon="COPYDOWN")
|
||||||
op.name = attribute.name
|
op.name = attribute.name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user