Asset Pipeline v2 #145
@ -146,6 +146,7 @@ def get_name_with_task_layer_prefix(name: str) -> str:
|
|||||||
str: Returns name with prefix
|
str: Returns name with prefix
|
||||||
"""
|
"""
|
||||||
asset_pipe = bpy.context.scene.asset_pipeline
|
asset_pipe = bpy.context.scene.asset_pipeline
|
||||||
|
prefix = asset_pipe.task_layer_name
|
||||||
for task_layer_key in constants.TASK_LAYER_TYPES.keys():
|
for task_layer_key in constants.TASK_LAYER_TYPES.keys():
|
||||||
if name.startswith(task_layer_key + "."):
|
if name.startswith(task_layer_key + "."):
|
||||||
return name
|
return name
|
||||||
|
Loading…
Reference in New Issue
Block a user