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

View File

@ -1,5 +1,6 @@
from pathlib import Path from pathlib import Path
from .. import constants from .. import constants
import bpy
def find_file_version(published_file: Path) -> int: def find_file_version(published_file: Path) -> int:
@ -28,7 +29,7 @@ def get_next_published_file(
Path: Path where the next published file should be saved to, path doesn't exist yet Path: Path where the next published file should be saved to, path doesn't exist yet
""" """""" """ """"""
last_publish = find_latest_publish(current_file, publish_type) last_publish = find_latest_publish(current_file, publish_type)
base_name = current_file.name.split(".")[0] base_name = bpy.context.scene.asset_pipeline.name
publish_dir = current_file.parent.joinpath(publish_type) publish_dir = current_file.parent.joinpath(publish_type)
if not last_publish: if not last_publish:
new_version_number = 1 new_version_number = 1