mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 22:12:32 +00:00
You can now duplicate a type from the properties panel
+ change the "paste" icon for the "duplicate" icon
This commit is contained in:
@@ -117,7 +117,7 @@ class LaunchTypeManager(bpy.types.Operator):
|
|||||||
|
|
||||||
op = row.operator("bim.select_type", icon="OBJECT_DATA", text="")
|
op = row.operator("bim.select_type", icon="OBJECT_DATA", text="")
|
||||||
op.relating_type = relating_type["id"]
|
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.element = relating_type["id"]
|
||||||
op = row.operator("bim.remove_type", icon="X", text="")
|
op = row.operator("bim.remove_type", icon="X", text="")
|
||||||
op.element = relating_type["id"]
|
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 = row.row(align=True)
|
||||||
select_type_objects_row.operator("bim.select_type_objects", icon="RESTRICT_SELECT_OFF", text="")
|
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
|
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):
|
def draw_product_ui(self, context):
|
||||||
props = context.active_object.BIMTypeProperties
|
props = context.active_object.BIMTypeProperties
|
||||||
|
|||||||
Reference in New Issue
Block a user