We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29577ff commit 5aca264Copy full SHA for 5aca264
Sources/Rendering/OpenGL/Renderer/index.js
@@ -24,6 +24,15 @@ function vtkOpenGLRenderer(publicAPI, model) {
24
publicAPI.updateLights();
25
publicAPI.prepareNodes();
26
publicAPI.addMissingNode(model.renderable.getActiveCamera());
27
+ // Force all actor2D instances to be sorted and re-pushed as scenegraph nodes.
28
+ // This ensures that they are rendered in the correct order.
29
+ const actors2D = model.renderable.getActors2D();
30
+ actors2D.forEach((ac) => {
31
+ const vn = publicAPI.getViewNodeFor(ac);
32
+ if (vn !== undefined) {
33
+ publicAPI.removeNode(vn);
34
+ }
35
+ });
36
publicAPI.addMissingNodes(model.renderable.getViewPropsWithNestedProps());
37
publicAPI.removeUnusedNodes();
38
}
0 commit comments