Asset Pipeline v2 #145
@ -1,7 +1,11 @@
|
||||
from .. import constants, core
|
||||
import bpy
|
||||
|
||||
|
||||
def draw_transfer_data_type(layout, items):
|
||||
def draw_transfer_data_type(
|
||||
layout: bpy.types.UILayout, items: bpy.types.CollectionProperty
|
||||
) -> None:
|
||||
"""Draw UI Element for items of a transfer data type"""
|
||||
if items == []:
|
||||
return
|
||||
name = core.get_dict_tuple_item(constants.TRANSFER_DATA_TYPES, items[0].type)[1]
|
||||
@ -12,7 +16,10 @@ def draw_transfer_data_type(layout, items):
|
||||
box.label(text=f"{item.name}: '{owner}'")
|
||||
|
||||
|
||||
def draw_transfer_data(ownership, layout) -> None:
|
||||
def draw_transfer_data(
|
||||
ownership: bpy.types.CollectionProperty, layout: bpy.types.UILayout
|
||||
) -> None:
|
||||
"""Draw UI List of Transfer Data"""
|
||||
vertex_groups = []
|
||||
material_slots = []
|
||||
modifiers = []
|
||||
|
Loading…
Reference in New Issue
Block a user