Asset Pipeline v2 #145
@ -2,8 +2,6 @@ import bpy
|
||||
from typing import Dict, Set
|
||||
from .naming import (
|
||||
get_target_name,
|
||||
get_basename,
|
||||
get_name_with_asset_prefix,
|
||||
task_layer_prefix_basename_get,
|
||||
)
|
||||
from .util import get_storage_of_id
|
||||
|
@ -13,7 +13,7 @@ from .transfer_data.transfer_util import transfer_data_add_entry
|
||||
from .naming import (
|
||||
add_suffix_to_hierarchy,
|
||||
remove_suffix_from_hierarchy,
|
||||
get_name_with_asset_prefix,
|
||||
asset_prefix_name_get,
|
||||
get_id_type_name,
|
||||
)
|
||||
|
||||
@ -81,7 +81,7 @@ def ownership_get(
|
||||
# Mark Asset ID Owner for objects in the current task layers collection
|
||||
if obj.asset_id_owner == "NONE" and obj in task_layer_objs:
|
||||
obj.asset_id_owner = default_task_layer
|
||||
obj.name = get_name_with_asset_prefix(obj.name)
|
||||
obj.name = asset_prefix_name_get(obj.name)
|
||||
init_transfer_data_with_defaults(scene, obj)
|
||||
continue
|
||||
# Skip items that have no owner
|
||||
|
@ -116,9 +116,7 @@ def add_suffix_to_hierarchy(collection: bpy.types.Collection, suffix_base: str)
|
||||
pass
|
||||
|
||||
|
||||
# TODO Cleanup prefix doc strings
|
||||
def get_name_with_asset_prefix(name: str) -> str:
|
||||
"""Returns a string with the prefix if it is not already set.
|
||||
def asset_prefix_name_get(name: str) -> str:
|
||||
Users can specify a prefix to live on all objects during the
|
||||
asset creation process. This prefix is stored in the scene.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user