Skip to content

Commit

Permalink
fix(ViewNode): Delete child in _renderableChildMap when removing a node
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret authored and finetjul committed Jun 13, 2024
1 parent dd24960 commit f56a523
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Rendering/SceneGraph/ViewNode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ function vtkViewNode(publicAPI, model) {
if (childIdx < 0) {
return false;
}
const renderable = child.getRenderable();
if (renderable) {
model._renderableChildMap.delete(renderable);
}
child.delete();
model.children.splice(childIdx, 1);
return true;
};
Expand Down

0 comments on commit f56a523

Please sign in to comment.