Asset Pipeline v2 #145
@ -27,7 +27,7 @@ from .util import get_storage_of_id
|
|||||||
DELIMITER = "."
|
DELIMITER = "."
|
||||||
|
|
||||||
|
|
||||||
def get_asset_basename(name):
|
def get_basename(name):
|
||||||
return DELIMITER.join(name.split(DELIMITER)[:-1])
|
return DELIMITER.join(name.split(DELIMITER)[:-1])
|
||||||
|
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ def remove_suffix_from_hierarchy(collection: bpy.types.Collection):
|
|||||||
# Don't rename linked datablocks.
|
# Don't rename linked datablocks.
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
db.name = get_asset_basename(db.name)
|
db.name = get_basename(db.name)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user