specify icons

This commit is contained in:
Nathan
2026-02-19 10:39:49 -07:00
parent 7642ff5d56
commit 4d5706ddf0
3 changed files with 837 additions and 6 deletions
File diff suppressed because one or more lines are too long
+6
View File
@@ -257,6 +257,7 @@ def _get_migrator_pair(context):
class DLM_OT_migrator_copy_attributes(Operator):
bl_idname = "dlm.migrator_copy_attributes"
bl_label = "Copy attributes"
bl_icon = "COPY_ID"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
@@ -277,6 +278,7 @@ class DLM_OT_migrator_copy_attributes(Operator):
class DLM_OT_migrator_migrate_nla(Operator):
bl_idname = "dlm.migrator_migrate_nla"
bl_label = "Migrate NLA"
bl_icon = "NLA"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
@@ -297,6 +299,7 @@ class DLM_OT_migrator_migrate_nla(Operator):
class DLM_OT_migrator_custom_properties(Operator):
bl_idname = "dlm.migrator_custom_properties"
bl_label = "Custom properties"
bl_icon = "PROPERTIES"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
@@ -317,6 +320,7 @@ class DLM_OT_migrator_custom_properties(Operator):
class DLM_OT_migrator_bone_constraints(Operator):
bl_idname = "dlm.migrator_bone_constraints"
bl_label = "Bone constraints"
bl_icon = "CONSTRAINT_BONE"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
@@ -338,6 +342,7 @@ class DLM_OT_migrator_bone_constraints(Operator):
class DLM_OT_migrator_retarget_relations(Operator):
bl_idname = "dlm.migrator_retarget_relations"
bl_label = "Retarget relations"
bl_icon = "ORIENTATION_PARENT"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
@@ -361,6 +366,7 @@ class DLM_OT_migrator_retarget_relations(Operator):
class DLM_OT_migrator_basebody_shapekeys(Operator):
bl_idname = "dlm.migrator_basebody_shapekeys"
bl_label = "Migrate BaseBody shapekeys"
bl_icon = "SHAPEKEY_DATA"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
+6 -6
View File
@@ -86,13 +86,13 @@ class DLM_PT_main_panel(Panel):
row = box.row()
row.operator("dlm.run_character_migration", text="Run migration", icon="ARMATURE_DATA")
row = box.row(align=True)
row.operator("dlm.migrator_copy_attributes", text="Copy attributes")
row.operator("dlm.migrator_migrate_nla", text="Migrate NLA")
row.operator("dlm.migrator_custom_properties", text="Custom properties")
row.operator("dlm.migrator_copy_attributes", text="Copy attributes", icon="COPY_ID")
row.operator("dlm.migrator_migrate_nla", text="Migrate NLA", icon="NLA")
row.operator("dlm.migrator_custom_properties", text="Custom properties", icon="PROPERTIES")
row = box.row(align=True)
row.operator("dlm.migrator_bone_constraints", text="Bone constraints")
row.operator("dlm.migrator_retarget_relations", text="Retarget relations")
row.operator("dlm.migrator_basebody_shapekeys", text="Migrate BaseBody shapekeys")
row.operator("dlm.migrator_bone_constraints", text="Bone constraints", icon="CONSTRAINT_BONE")
row.operator("dlm.migrator_retarget_relations", text="Retarget relations", icon="ORIENTATION_PARENT")
row.operator("dlm.migrator_basebody_shapekeys", text="Migrate BaseBody shapekeys", icon="SHAPEKEY_DATA")
# Linked Libraries: header row (always), main box only when expanded
missing_count = sum(1 for lib in props.linked_libraries if lib.is_missing)