Fix warnings in new simplified copy attribute to selection operator

This commit is contained in:
Dion Moult
2020-11-22 09:29:33 +11:00
parent fc5fcef079
commit 7cc832ea15
2 changed files with 4 additions and 5 deletions
@@ -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,
+3 -4
View File
@@ -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()