Asset Pipeline v2 #145
@ -14,13 +14,13 @@ TASK_LAYER_NAMES = [task_layer[1] for task_layer in TASK_LAYER_TYPES]
|
||||
TRANSFER_DATA_TYPES = [
|
||||
("NONE", "None", ""),
|
||||
("GROUP_VERTEX", "Vertex Group", ""),
|
||||
("GROUP_VCOL", "Color Attribute", ""),
|
||||
("COLOR_ATTRIBUTE", "Color Attribute", ""),
|
||||
("MODIFIER", "Modifier", ""),
|
||||
("CONSTRAINT", "Constraint", ""),
|
||||
("MATERIAL", "Material Slot", ""),
|
||||
("GROUP_UVS", "UV Maps", ""),
|
||||
("SHAPEKEY_DATA", "Shape Key", ""),
|
||||
("EVENT_A", "Attribute", ""),
|
||||
("UV_MAP", "UV Maps", ""),
|
||||
("SHAPE_KEY", "Shape Key", ""),
|
||||
("ATTRIBUTE", "Attribute", ""),
|
||||
]
|
||||
|
||||
TRANSFER_DATA_KEYS = [transfer_data[0] for transfer_data in TRANSFER_DATA_TYPES]
|
||||
@ -34,6 +34,18 @@ UV_LAYERS_KEY = TRANSFER_DATA_KEYS[6]
|
||||
SHAPE_KEY_KEY = TRANSFER_DATA_KEYS[7]
|
||||
ATTRIBUTE_KEY = TRANSFER_DATA_KEYS[8]
|
||||
|
||||
TRANSFER_DATA_ICONS = [
|
||||
("None", "NONE", ""),
|
||||
(VERTEX_GROUP_KEY, "GROUP_VERTEX", ""),
|
||||
(VERTEX_COLOR_KEY, "GROUP_VCOL", ""),
|
||||
(MODIFIER_KEY, "MODIFIER", ""),
|
||||
(CONSTRAINT_KEY, "CONSTRAINT", ""),
|
||||
(MATERIAL_SLOT_KEY, "MATERIAL", ""),
|
||||
(UV_LAYERS_KEY, "GROUP_UVS", ""),
|
||||
(SHAPE_KEY_KEY, "SHAPEKEY_DATA", ""),
|
||||
(ATTRIBUTE_KEY, "EVENT_A", ""),
|
||||
]
|
||||
|
||||
MATERIAL_TRANSFER_INFO_NAME = "All Material Slots"
|
||||
|
||||
PUBLISH_TYPES = [
|
||||
|
@ -12,7 +12,10 @@ def draw_transfer_data_type(
|
||||
constants.TRANSFER_DATA_TYPES, transfer_data[0].type
|
||||
)[1]
|
||||
box = layout.box()
|
||||
box.label(text=name, icon=transfer_data[0].type)
|
||||
icon = core.get_dict_tuple_item(
|
||||
constants.TRANSFER_DATA_ICONS, transfer_data[0].type
|
||||
)[1]
|
||||
box.label(text=name, icon=icon)
|
||||
for transfer_info in transfer_data:
|
||||
owner = core.get_dict_tuple_item(
|
||||
constants.TASK_LAYER_TYPES, transfer_info.owner
|
||||
|
Loading…
Reference in New Issue
Block a user