Skip to content

Commit 19d1659

Browse files
Alexis Giraultfloryst
andcommitted
fix(RenderWindowInteractor): do not share animation requesters
The Set was shared between every instance of RenderWindowInteractor. Co-Authored-by: Forrest Li <forrest.li@kitware.com>
1 parent 5c77a5a commit 19d1659

File tree

1 file changed

+4
-1
lines changed
  • Sources/Rendering/Core/RenderWindowInteractor

1 file changed

+4
-1
lines changed

Sources/Rendering/Core/RenderWindowInteractor/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ function vtkRenderWindowInteractor(publicAPI, model) {
6464
// Set our className
6565
model.classHierarchy.push('vtkRenderWindowInteractor');
6666

67+
// Initialize list of requesters
68+
model.animationRequesters = new Set();
69+
6770
// Public API methods
6871

6972
//----------------------------------------------------------------------
@@ -868,7 +871,7 @@ const DEFAULT_VALUES = {
868871
recognizeGestures: true,
869872
currentGesture: 'Start',
870873
animationRequest: null,
871-
animationRequesters: new Set(),
874+
animationRequesters: null,
872875
lastFrameTime: 0.1,
873876
wheelTimeoutID: 0,
874877
moveTimeoutID: 0,

0 commit comments

Comments
 (0)