Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 0087a681d4 - Show all commits

View File

@ -1,7 +1,11 @@
from .. import constants, core 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 == []: if items == []:
return return
name = core.get_dict_tuple_item(constants.TRANSFER_DATA_TYPES, items[0].type)[1] 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}'") 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 = [] vertex_groups = []
material_slots = [] material_slots = []
modifiers = [] modifiers = []