mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
refactor: more accurately specified the conditions of '_configure_saver_tool' calls
This commit is contained in:
parent
3c272e4a7d
commit
940103feee
1 changed files with 11 additions and 3 deletions
|
|
@ -119,9 +119,17 @@ class CreateSaver(NewCreator):
|
||||||
if "subset" not in data:
|
if "subset" not in data:
|
||||||
return
|
return
|
||||||
|
|
||||||
original_data = tool.GetData("openpype.creator_attributes")
|
original_subset = tool.GetData("openpype.subset")
|
||||||
if original_data != data["creator_attributes"]:
|
original_format = tool.GetData(
|
||||||
self._configure_saver_tool(data, tool, data["subset"])
|
"openpype.creator_attributes.image_format"
|
||||||
|
)
|
||||||
|
|
||||||
|
subset = data["subset"]
|
||||||
|
if (
|
||||||
|
original_subset != subset
|
||||||
|
or original_format != data["creator_attributes"]["image_format"]
|
||||||
|
):
|
||||||
|
self._configure_saver_tool(data, tool, subset)
|
||||||
|
|
||||||
def _configure_saver_tool(self, data, tool, subset):
|
def _configure_saver_tool(self, data, tool, subset):
|
||||||
formatting_data = deepcopy(data)
|
formatting_data = deepcopy(data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue