mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Separate into variables for readability
This commit is contained in:
parent
d65b84cf2f
commit
cfcce21383
1 changed files with 3 additions and 8 deletions
|
|
@ -537,14 +537,9 @@ class AbstractTemplateBuilder(ABC):
|
||||||
|
|
||||||
# Build the template if we are explicitly requesting it or if it's
|
# Build the template if we are explicitly requesting it or if it's
|
||||||
# an unsaved "new file".
|
# an unsaved "new file".
|
||||||
if (
|
is_new_file = not self.host.get_current_workfile()
|
||||||
# If not a workfile creation, an explicit load template
|
explicit_build_requested = not workfile_creation_enabled
|
||||||
# was requested, so we always want to build the template
|
if is_new_file or explicit_build_requested:
|
||||||
not workfile_creation_enabled
|
|
||||||
# Or if workfile creation, but we're not in an active file
|
|
||||||
# we still need to build the "new workfile template"
|
|
||||||
or not self.host.get_current_workfile()
|
|
||||||
):
|
|
||||||
self.log.info(f"Building the workfile template: {template_path}")
|
self.log.info(f"Building the workfile template: {template_path}")
|
||||||
self.import_template(template_path)
|
self.import_template(template_path)
|
||||||
self.populate_scene_placeholders(
|
self.populate_scene_placeholders(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue