Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix knob removement
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Aug 31, 2022
1 parent eebfd22 commit 5d6b672
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openpype/hosts/nuke/api/template_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def populate_template(self, ignored_ids=None):
nodes.append(node)

for node in processed_nodes:
if processed_key in node.knobs():
nuke.removeKnob(node, processed_key)
knob = node.knob(processed_key)
if knob is not None:
node.removeKnob(knob)

@staticmethod
def get_template_nodes():
Expand Down

0 comments on commit 5d6b672

Please sign in to comment.