Skip to content

Commit

Permalink
fix: recursive delete calls no longer use activePublish
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt committed Apr 23, 2024
1 parent c4f9319 commit c25345b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/sc/iview/SciView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
}
}
if (runRecursive) {
activeNode?.runRecursive( { node: Node -> this.deleteNode(node) })
activeNode?.runRecursive { node: Node -> this.deleteNode(node, activePublish = false) }
} else {
deleteNode(activeNode)
}
Expand All @@ -1216,7 +1216,8 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
}

for (child in node!!.children) {
deleteNode(child, activePublish)
// child node deletions should not be published actively
deleteNode(child, false)
}
objectService.removeObject(node)
node.parent?.removeChild(node)
Expand Down

0 comments on commit c25345b

Please sign in to comment.