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 c7ff9bb277 - Show all commits

View File

@ -107,9 +107,10 @@ def get_task_layer_col_name(task_layer_key):
return get_name_with_asset_prefix(task_layer_name) return get_name_with_asset_prefix(task_layer_name)
def get_name_with_asset_prefix(name): def get_name_with_asset_prefix(name: str):
# TODO Docstring and return types # TODO Docstring and return types
# TODO Add check if prefix already exists, don't add two prefixes if name.startswith(asset_pipe.prefix + "."):
return name
asset_pipe = bpy.context.scene.asset_pipeline asset_pipe = bpy.context.scene.asset_pipeline
prefix = asset_pipe.prefix + "." if asset_pipe.prefix != "" else "" prefix = asset_pipe.prefix + "." if asset_pipe.prefix != "" else ""
return prefix + name return prefix + name