You can now copy properties to selection even if the pset doesn't exist yet

This commit is contained in:
Dion Moult
2020-09-03 19:24:55 +10:00
parent dbbc56ef0d
commit 147bf664cc
4 changed files with 46 additions and 3 deletions
+3 -3
View File
@@ -101,10 +101,10 @@ class BIM_PT_object_psets(Panel):
row = layout.row(align=True)
row.prop(prop, 'name', text='')
row.prop(prop, 'string_value', text='')
op = row.operator('bim.copy_attributes_to_selection', icon='COPYDOWN', text='')
op.prop_base = 'BIMObjectProperties.psets[\'{}\'].properties'.format(pset.name)
op = row.operator('bim.copy_property_to_selection', icon='COPYDOWN', text='')
op.pset_name = pset.name
op.prop_name = prop.name
op.collection_element = True
op.prop_value = prop.string_value
class BIM_PT_object_qto(Panel):
bl_label = 'IFC Object Quantity Sets'