Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions client/ayon_nuke/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2493,9 +2493,13 @@ def maintained_selection(exclude_nodes=None):
# unselect all selection in case there is some
reset_selection()

# and select all previously selected nodes
if previous_selection:
select_nodes(previous_selection)
for node in previous_selection:
try:
node["selected"].setValue(True)
except ValueError:
# Could fail if a node was deleted during the context.
# See: https://github.com/ynput/ayon-nuke/pull/331 for details.
pass
Comment thread
BigRoy marked this conversation as resolved.


@contextlib.contextmanager
Expand Down
Loading