mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix warnings in new simplified copy attribute to selection operator
This commit is contained in:
@@ -146,7 +146,6 @@ if bpy is not None:
|
|||||||
operator.SwitchContext,
|
operator.SwitchContext,
|
||||||
operator.RemoveContext,
|
operator.RemoveContext,
|
||||||
operator.OpenUpstream,
|
operator.OpenUpstream,
|
||||||
operator.BIM_OT_CopyAttributesToSelection,
|
|
||||||
operator.BIM_OT_ChangeClassificationLevel,
|
operator.BIM_OT_ChangeClassificationLevel,
|
||||||
operator.AddPropertySetTemplate,
|
operator.AddPropertySetTemplate,
|
||||||
operator.RemovePropertySetTemplate,
|
operator.RemovePropertySetTemplate,
|
||||||
@@ -213,6 +212,7 @@ if bpy is not None:
|
|||||||
operator.AddDrawingStyleAttribute,
|
operator.AddDrawingStyleAttribute,
|
||||||
operator.RemoveDrawingStyleAttribute,
|
operator.RemoveDrawingStyleAttribute,
|
||||||
operator.CopyPropertyToSelection,
|
operator.CopyPropertyToSelection,
|
||||||
|
operator.CopyAttributeToSelection,
|
||||||
operator.CreateShapeFromStepId,
|
operator.CreateShapeFromStepId,
|
||||||
operator.SelectHighPolygonMeshes,
|
operator.SelectHighPolygonMeshes,
|
||||||
operator.InspectFromStepId,
|
operator.InspectFromStepId,
|
||||||
|
|||||||
@@ -58,10 +58,9 @@ class BIM_PT_object(Panel):
|
|||||||
row.prop(attribute, "string_value", text="")
|
row.prop(attribute, "string_value", text="")
|
||||||
if attribute.name == "GlobalId":
|
if attribute.name == "GlobalId":
|
||||||
row.operator("bim.generate_global_id", icon="FILE_REFRESH", text="")
|
row.operator("bim.generate_global_id", icon="FILE_REFRESH", text="")
|
||||||
op = row.operator("bim.copy_attributes_to_selection", icon="COPYDOWN", text="")
|
op = row.operator("bim.copy_attribute_to_selection", icon="COPYDOWN", text="")
|
||||||
op.prop_base = "BIMObjectProperties.attributes"
|
op.attribute_name = attribute.name
|
||||||
op.prop_name = attribute.name
|
op.attribute_value = attribute.string_value
|
||||||
op.collection_element = True
|
|
||||||
row.operator("bim.remove_attribute", icon="X", text="").attribute_index = index
|
row.operator("bim.remove_attribute", icon="X", text="").attribute_index = index
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
|
|||||||
Reference in New Issue
Block a user