Asset Pipeline v2 #145
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user