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.
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 151b6a6354 - Show all commits

View File

@ -7,6 +7,8 @@ TASK_LAYER_ITEMS = [
("SHADE", "Shading", ""),
]
TASK_LAYER_KEYS = [item[0] for item in TASK_LAYER_ITEMS]
TRANSFER_DATA_TYPES = [
("NONE", "None", ""),
("VERTEX_GROUP", "Vertex Group", ""),

View File

@ -12,8 +12,10 @@ class ASSETPIPE_OT_update_ownership(bpy.types.Operator):
def execute(self, context):
obj = context.active_object
file_name = bpy.path.basename(bpy.context.blend_data.filepath)
# TODO check if exists in task_layer_constants
task_layer_name = file_name.split(".")[-2]
if task_layer_name not in constants.TASK_LAYER_KEYS:
self.report({'ERROR'}, "Current File Name doesn't contain valid task layer")
return {'CANCELLED'}
transferable_data.vertex_groups_update(obj, task_layer_name)
transferable_data.modifiers_update(obj, task_layer_name)
transferable_data.material_slot_update(obj, task_layer_name)
@ -35,7 +37,7 @@ class ASSETPIPE_OT_push_test(bpy.types.Operator):
bpy.ops.wm.open_mainfile(filepath=pub_file_path)
local_tls = [
item[0] for item in constants.TASK_LAYER_ITEMS if item[0] != task_layer_name
item for item in constants.TASK_LAYER_KEYS if item != task_layer_name
]
core.merge_task_layer(