mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +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:
|
||||
return
|
||||
|
||||
original_data = tool.GetData("openpype.creator_attributes")
|
||||
if original_data != data["creator_attributes"]:
|
||||
self._configure_saver_tool(data, tool, data["subset"])
|
||||
original_subset = tool.GetData("openpype.subset")
|
||||
original_format = tool.GetData(
|
||||
"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):
|
||||
formatting_data = deepcopy(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue