@kitware/vtk.js 31.0.1 → 31.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -582,7 +582,7 @@ function vtkOpenGLRenderWindow(publicAPI, model) {
|
|
|
582
582
|
};
|
|
583
583
|
publicAPI.copyParentContent = () => {
|
|
584
584
|
const rootParent = model.rootOpenGLRenderWindow;
|
|
585
|
-
if (!rootParent || !model.context2D) {
|
|
585
|
+
if (!rootParent || !model.context2D || model.children.some(oglRenderer => !!oglRenderer.getSelector?.())) {
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
588
|
const parentCanvas = rootParent.getCanvas();
|