Skip to content

Commit

Permalink
fix: undefined variable _iter_layer used
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Mar 8, 2021
1 parent 4a08dcd commit 29cc348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/edit/rotopaint_dopesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def _rotopaint_keyframes(n):
key_frames = set([n.firstFrame(), n.lastFrame()])
for i in _iter_layer(n["curves"].rootLayer):
for i in iter_layer(n["curves"].rootLayer):
if isinstance(i, nuke.rotopaint.Layer):
continue
attrs = i.getAttributes()
Expand Down
2 changes: 1 addition & 1 deletion lib/rotopaint_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def iter_layer(layer):
for i in layer:
yield i
if isinstance(i, nuke.rotopaint.Layer):
for j in _iter_layer(i):
for j in iter_layer(i):
yield j


Expand Down

0 comments on commit 29cc348

Please sign in to comment.