Asset Pipeline v2 #145
@ -13,13 +13,18 @@ def draw_transfer_data_type(layout, items):
|
||||
|
||||
|
||||
def draw_transfer_data(ownership, layout) -> None:
|
||||
vertex_groups = [
|
||||
item for item in ownership if item.type == constants.VERTEX_GROUP_KEY
|
||||
]
|
||||
material_slots = [
|
||||
item for item in ownership if item.type == constants.MATERIAL_SLOT_KEY
|
||||
]
|
||||
modifiers = [item for item in ownership if item.type == constants.MODIFIER_KEY]
|
||||
vertex_groups = []
|
||||
material_slots = []
|
||||
modifiers = []
|
||||
|
||||
for item in ownership:
|
||||
if item.type == constants.VERTEX_GROUP_KEY:
|
||||
vertex_groups.append(item)
|
||||
if item.type == constants.MATERIAL_SLOT_KEY:
|
||||
material_slots.append(item)
|
||||
if item.type == constants.MODIFIER_KEY:
|
||||
modifiers.append(item)
|
||||
|
||||
draw_transfer_data_type(layout, vertex_groups)
|
||||
draw_transfer_data_type(layout, modifiers)
|
||||
draw_transfer_data_type(layout, material_slots)
|
||||
|
Loading…
Reference in New Issue
Block a user