Asset Pipeline v2 #145
@ -108,9 +108,9 @@ def get_task_layer_col_name(task_layer_key):
|
|||||||
|
|
||||||
def get_name_with_asset_prefix(name: str):
|
def get_name_with_asset_prefix(name: str):
|
||||||
# TODO Docstring and return types
|
# TODO Docstring and return types
|
||||||
|
asset_pipe = bpy.context.scene.asset_pipeline
|
||||||
if name.startswith(asset_pipe.prefix + "."):
|
if name.startswith(asset_pipe.prefix + "."):
|
||||||
return name
|
return name
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user