mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
Refactor - renamed replace_published_scene
Former name pointed to replacing of whole file. This function is only about using path to published workfile instead of work workfile.
This commit is contained in:
parent
8754345b44
commit
708819f8b1
2 changed files with 6 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ from openpype.pipeline.publish import (
|
|||
OpenPypePyblishPluginMixin
|
||||
)
|
||||
from openpype.pipeline.publish.lib import (
|
||||
replace_published_scene
|
||||
replace_with_published_scene_path
|
||||
)
|
||||
|
||||
JSONDecodeError = getattr(json.decoder, "JSONDecodeError", ValueError)
|
||||
|
|
@ -528,7 +528,8 @@ class AbstractSubmitDeadline(pyblish.api.InstancePlugin,
|
|||
published.
|
||||
|
||||
"""
|
||||
return replace_published_scene(self._instance, replace_in_path=True)
|
||||
return replace_with_published_scene_path(
|
||||
self._instance, replace_in_path=replace_in_path)
|
||||
|
||||
def assemble_payload(
|
||||
self, job_info=None, plugin_info=None, aux_files=None):
|
||||
|
|
|
|||
|
|
@ -882,10 +882,11 @@ def get_published_workfile_instance(context):
|
|||
return i
|
||||
|
||||
|
||||
def replace_published_scene(instance, replace_in_path=True):
|
||||
"""Switch work scene for published scene.
|
||||
def replace_with_published_scene_path(instance, replace_in_path=True):
|
||||
"""Switch work scene path for published scene.
|
||||
If rendering/exporting from published scenes is enabled, this will
|
||||
replace paths from working scene to published scene.
|
||||
This only works if publish contains workfile instance!
|
||||
Args:
|
||||
instance (pyblish.api.Instance): Pyblish instance.
|
||||
replace_in_path (bool): if True, it will try to find
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue