Asset Pipeline v2 #145
@ -4,7 +4,7 @@ from .. import constants
|
||||
|
||||
def get_local_task_layers():
|
||||
local_task_layer_strings = bpy.context.scene.asset_pipeline.local_task_layers
|
||||
return local_task_layer_strings.split(",")
|
||||
return [string for string in local_task_layer_strings.split(",") if string != ""]
|
||||
|
||||
|
||||
def get_default_task_layer(td_type: str, name=""):
|
||||
@ -15,7 +15,10 @@ def get_default_task_layer(td_type: str, name=""):
|
||||
|
||||
|
||||
def get_transfer_data_owner(td_type_key: str, use_default_owner: bool, name=""):
|
||||
if use_default_owner:
|
||||
if (
|
||||
use_default_owner
|
||||
or get_default_task_layer(td_type_key, name) in get_local_task_layers()
|
||||
):
|
||||
return get_default_task_layer(td_type_key, name)
|
||||
else:
|
||||
return get_local_task_layers()[0]
|
||||
|
Loading…
Reference in New Issue
Block a user