mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Skip empty values
This commit is contained in:
parent
e769a76ac3
commit
09c5512e91
1 changed files with 3 additions and 0 deletions
|
|
@ -2060,6 +2060,9 @@ class WorkfileSettings(object):
|
|||
# it will be dict in value
|
||||
if isinstance(value_, dict):
|
||||
continue
|
||||
# skip empty values
|
||||
if not value_:
|
||||
continue
|
||||
if self._root_node[knob].value() not in value_:
|
||||
self._root_node[knob].setValue(str(value_))
|
||||
log.debug("nuke.root()['{}'] changed to: {}".format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue