We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bacadd commit fcf47afCopy full SHA for fcf47af
1 file changed
src/core/ViewContainer.js
@@ -22,6 +22,7 @@ class ViewController extends Component {
22
} else {
23
this.renderWindow = vtkRenderWindow.newInstance();
24
this.openglRenderWindow = vtkOpenGLRenderWindow.newInstance();
25
+ this.interactor = vtkRenderWindowInteractor.newInstance();
26
}
27
28
this.onEnter = this.onEnter.bind(this);
@@ -32,7 +33,6 @@ class ViewController extends Component {
32
33
if (!this.props.root) {
34
this.renderWindow.addView(this.openglRenderWindow);
35
- this.interactor = vtkRenderWindowInteractor.newInstance();
36
if (this.props.interactive) {
37
this.interactor.setView(this.openglRenderWindow);
38
this.interactor.initialize();
0 commit comments