Skip to content

Commit

Permalink
fixup! ContextTracker : Add asynchronous update mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Jul 18, 2024
1 parent 89121c3 commit ea214b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GafferUI/ContextTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ void ContextTracker::visit( std::deque<std::pair<const Plug *, ConstContextPtr>>
continue;
}

// Scope the context we're visiting before evaluating any plug
// values. We store contexts without a canceller (ready to return
// from `ContextTracker::context()`), so must also scope the canceller
// to allow any computes we trigger to be cancelled.
Context::EditableScope scopedContext( context.get() );
scopedContext.setCanceller( canceller );

Expand Down

0 comments on commit ea214b8

Please sign in to comment.