diff options
author | Greg <gregzzmail@gmail.com> | 2016-08-13 16:24:08 +0300 |
---|---|---|
committer | Greg <gregzzmail@gmail.com> | 2016-08-13 16:25:45 +0300 |
commit | ad111ff59e5dce971d6794b18e4dc03c0ca27e9f (patch) | |
tree | faaf156d46fa1538e52cbc4e0c4d4cb025c3ff26 /node_wrangler.py | |
parent | 9b31a0e6265ebdbc34dbc98c27640f1c31c6a63f (diff) |
NW: Fix infinite loop with nested frames
Diffstat (limited to 'node_wrangler.py')
-rw-r--r-- | node_wrangler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_wrangler.py b/node_wrangler.py index f1a42adb..977c7aa6 100644 --- a/node_wrangler.py +++ b/node_wrangler.py @@ -1307,12 +1307,12 @@ class NWDeleteUnused(Operator, NWBase): while repeat: frames_in_use = [] frames = [] - print ("iter") repeat = False for node in nodes: if node.parent: frames_in_use.append(node.parent) - if node.type == 'FRAME': + for node in nodes: + if node.type == 'FRAME' and node not in frames_in_use: frames.append(node) if node.parent: repeat = True # repeat for nested frames |