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 7d193d33e6 - Show all commits

View File

@ -17,7 +17,7 @@ def remove_old_ownership(obj, task_layer_name):
if (
transfer_functions.vertex_group_is_missing(item)
or transfer_functions.modifiers_is_missing(item)
or transfer_functions.modifiers_is_missing(item)
or transfer_functions.material_slot_is_missing(item)
):
to_remove.append(item.name)
@ -100,6 +100,15 @@ def find_published_file_version(file):
return int(file.name.split(".")[1].replace("v", ""))
def get_next_published_file(current_file: Path):
last_publish = find_published_file(current_file)
new_version_number = find_published_file_version(last_publish) + 1
new_version = "{0:0=3d}".format(new_version_number)
return last_publish.parent.joinpath(
last_publish.name.split(".v")[0] + f".v" + new_version + ".blend"
)
def find_published_file(current_file: Path):
publish_dir = current_file.parent.joinpath("publish")
if not publish_dir.exists():