mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
nuke: removing knob preset if no value in override
This commit is contained in:
parent
5546ea2fa7
commit
1765f25ecd
1 changed files with 7 additions and 1 deletions
|
|
@ -560,7 +560,13 @@ def get_created_node_imageio_setting(**kwarg):
|
|||
"_ overriding knob: `{}` > `{}`".format(
|
||||
knob, oknob
|
||||
))
|
||||
knob["value"] = oknob["value"]
|
||||
if not oknob["value"]:
|
||||
# remove original knob if no value found in oknob
|
||||
imageio_node["knobs"].remove(knob)
|
||||
else:
|
||||
# override knob value with oknob's
|
||||
knob["value"] = oknob["value"]
|
||||
|
||||
# add missing knobs into imageio_node
|
||||
if oknob["name"] not in knob_names:
|
||||
log.debug(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue