You can now duplicate a type from the properties panel

+ change the "paste" icon for the  "duplicate" icon
This commit is contained in:
Gorgious
2023-05-13 20:33:33 +02:00
parent 4843068458
commit 9d9d1660ff
2 changed files with 3 additions and 1 deletions
@@ -117,7 +117,7 @@ class LaunchTypeManager(bpy.types.Operator):
op = row.operator("bim.select_type", icon="OBJECT_DATA", text="")
op.relating_type = relating_type["id"]
op = row.operator("bim.duplicate_type", icon="COPYDOWN", text="")
op = row.operator("bim.duplicate_type", icon="DUPLICATE", text="")
op.element = relating_type["id"]
op = row.operator("bim.remove_type", icon="X", text="")
op.element = relating_type["id"]
@@ -62,6 +62,8 @@ class BIM_PT_type(Panel):
select_type_objects_row = row.row(align=True)
select_type_objects_row.operator("bim.select_type_objects", icon="RESTRICT_SELECT_OFF", text="")
select_type_objects_row.enabled = int(TypeData.data["total_instances"]) > 0
op = row.operator("bim.duplicate_type", icon="DUPLICATE", text="")
op.element = context.active_object.BIMObjectProperties.ifc_definition_id
def draw_product_ui(self, context):
props = context.active_object.BIMTypeProperties