Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit b5ccdaa

Browse files
committed
fix(nuke): maintain selection previous selection error
in case the node from previous selection was deleted
1 parent 13251cd commit b5ccdaa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

avalon/nuke/lib.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ def maintained_selection():
3232
reset_selection()
3333
# and select all previously selected nodes
3434
if previous_selection:
35-
for n in nodes:
36-
if n not in previous_selection:
37-
continue
38-
n['selected'].setValue(True)
35+
try:
36+
for n in nodes:
37+
if n not in previous_selection:
38+
continue
39+
n['selected'].setValue(True)
40+
except ValueError as e:
41+
log.warning(e)
3942

4043

4144
def reset_selection():

0 commit comments

Comments
 (0)