Asset Pipeline v2 #145
@ -60,7 +60,11 @@ def get_target_name(name: str) -> str:
|
|||||||
|
|
||||||
def get_basename(name: str) -> str:
|
def get_basename(name: str) -> str:
|
||||||
"""Returns the name of an asset without it's suffix"""
|
"""Returns the name of an asset without it's suffix"""
|
||||||
return DELIMITER.join(name.split(DELIMITER)[:-1])
|
if name.endswith(constants.LOCAL_SUFFIX) or name.endswith(
|
||||||
|
constants.EXTERNAL_SUFFIX
|
||||||
|
):
|
||||||
|
return DELIMITER.join(name.split(DELIMITER)[:-1])
|
||||||
|
return name
|
||||||
|
|
||||||
|
|
||||||
def remove_suffix_from_hierarchy(collection: bpy.types.Collection) -> None:
|
def remove_suffix_from_hierarchy(collection: bpy.types.Collection) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user