nuke: removing knob preset if no value in override

This commit is contained in:
Jakub Jezek 2022-04-28 20:48:46 +02:00
parent 5546ea2fa7
commit 1765f25ecd
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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(