Skip to content

Commit

Permalink
fix(sharedRenderWindow): Fix rendering when picking with hardware sel…
Browse files Browse the repository at this point in the history
…ector
  • Loading branch information
bruyeret committed Jul 17, 2024
1 parent 450e84a commit 3ddf8aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Rendering/OpenGL/RenderWindow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,11 @@ function vtkOpenGLRenderWindow(publicAPI, model) {

publicAPI.copyParentContent = () => {
const rootParent = model.rootOpenGLRenderWindow;
if (!rootParent || !model.context2D) {
if (
!rootParent ||
!model.context2D ||
model.children.some((oglRenderer) => !!oglRenderer.getSelector?.())
) {
return;
}
const parentCanvas = rootParent.getCanvas();
Expand Down

0 comments on commit 3ddf8aa

Please sign in to comment.