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 3b7ec663d8 - Show all commits

View File

@ -22,16 +22,16 @@ from typing import List, Dict, Union, Any, Set, Optional, Tuple, Generator
import bpy import bpy
from bpy_extras.id_map_utils import get_id_reference_map, get_all_referenced_ids from bpy_extras.id_map_utils import get_id_reference_map, get_all_referenced_ids
from .utils import get_storage_of_id from .util import get_storage_of_id
DELIMITER = "." DELIMITER = "."
def get_asset_basename(name): def get_asset_basename(name):
return DELIMITER.join(name.split(DELIMITER)[:-1]) return DELIMITER.join(name.split(DELIMITER)[:-1])
def remove_suffix_from_hierarchy(
collection: bpy.types.Collection def remove_suffix_from_hierarchy(collection: bpy.types.Collection):
):
"""Removes the suffix after a set delimiter from all datablocks """Removes the suffix after a set delimiter from all datablocks
referenced by a collection, itself included""" referenced by a collection, itself included"""