Skip to content

Commit

Permalink
fix(ViewNode): Register child in renderableChildMap when calling addM…
Browse files Browse the repository at this point in the history
…issingChildren
  • Loading branch information
bruyeret authored and finetjul committed Apr 11, 2024
1 parent df66dcc commit df57dbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Rendering/SceneGraph/ViewNode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ function vtkViewNode(publicAPI, model) {
if (cindex === -1) {
child.setParent(publicAPI);
model.children.push(child);
const childRenderable = child.getRenderable();
if (childRenderable) {
model._renderableChildMap.set(childRenderable, child);
}
}
child.setVisited(true);
}
Expand Down

0 comments on commit df57dbd

Please sign in to comment.