mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
changed logic of setting tvpaint data on start for Pype 3
This commit is contained in:
parent
6782062e53
commit
0ce878e7c2
1 changed files with 4 additions and 1 deletions
|
|
@ -37,7 +37,10 @@ def on_instance_toggle(instance, old_value, new_value):
|
|||
|
||||
def initial_launch():
|
||||
# Setup project settings if its the template that's launched.
|
||||
if os.environ.get("PYPE_TVPAINT_LAUNCHED_TEMPLATE_FILE") != "1":
|
||||
# TODO also check for template creation when it's possible to define
|
||||
# templates
|
||||
last_workfile = os.environ.get("AVALON_LAST_WORKFILE")
|
||||
if not last_workfile or os.path.exists(last_workfile):
|
||||
return
|
||||
|
||||
log.info("Setting up project...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue