Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 2397fb5220 - Show all commits

View File

@ -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"""
if name.endswith(constants.LOCAL_SUFFIX) or name.endswith(
constants.EXTERNAL_SUFFIX
):
return DELIMITER.join(name.split(DELIMITER)[:-1]) 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: