Asset Pipeline v2 #145
@ -64,8 +64,15 @@ def ownership_get(
|
||||
asset_pipe = scene.asset_pipeline
|
||||
asset_pipe.temp_transfer_data.clear()
|
||||
# TODO Figure out default in this case
|
||||
|
||||
default_task_layer = get_local_task_layers()[0]
|
||||
|
||||
for col in asset_pipe.asset_collection.children:
|
||||
if col.asset_id_owner == "NONE":
|
||||
col.asset_id_owner = default_task_layer
|
||||
|
||||
task_layer_objs = get_task_layer_objects()
|
||||
|
||||
for obj in local_col.all_objects:
|
||||
# Mark Asset ID Owner for objects in the current task layers collection
|
||||
if obj.asset_id_owner == "NONE" and obj in task_layer_objs:
|
||||
@ -78,9 +85,6 @@ def ownership_get(
|
||||
continue
|
||||
ownership_transfer_data_cleanup(obj)
|
||||
init_transfer_data(scene, obj)
|
||||
for col in asset_pipe.asset_collection.children:
|
||||
if col.asset_id_owner == "NONE":
|
||||
col.asset_id_owner = default_task_layer
|
||||
|
||||
|
||||
def ownership_set(temp_transfer_data: bpy.types.CollectionProperty) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user