mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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.RemoveContext,
|
||||
operator.OpenUpstream,
|
||||
operator.BIM_OT_CopyAttributesToSelection,
|
||||
operator.BIM_OT_ChangeClassificationLevel,
|
||||
operator.AddPropertySetTemplate,
|
||||
operator.RemovePropertySetTemplate,
|
||||
@@ -213,6 +212,7 @@ if bpy is not None:
|
||||
operator.AddDrawingStyleAttribute,
|
||||
operator.RemoveDrawingStyleAttribute,
|
||||
operator.CopyPropertyToSelection,
|
||||
operator.CopyAttributeToSelection,
|
||||
operator.CreateShapeFromStepId,
|
||||
operator.SelectHighPolygonMeshes,
|
||||
operator.InspectFromStepId,
|
||||
|
||||
@@ -58,10 +58,9 @@ class BIM_PT_object(Panel):
|
||||
row.prop(attribute, "string_value", text="")
|
||||
if attribute.name == "GlobalId":
|
||||
row.operator("bim.generate_global_id", icon="FILE_REFRESH", text="")
|
||||
op = row.operator("bim.copy_attributes_to_selection", icon="COPYDOWN", text="")
|
||||
op.prop_base = "BIMObjectProperties.attributes"
|
||||
op.prop_name = attribute.name
|
||||
op.collection_element = True
|
||||
op = row.operator("bim.copy_attribute_to_selection", icon="COPYDOWN", text="")
|
||||
op.attribute_name = attribute.name
|
||||
op.attribute_value = attribute.string_value
|
||||
row.operator("bim.remove_attribute", icon="X", text="").attribute_index = index
|
||||
|
||||
row = layout.row()
|
||||
|
||||
Reference in New Issue
Block a user