Skip to content

Commit 4286604

Browse files
committed
Replace another rebuild call with needSceneUpdate flag
1 parent d81dc3c commit 4286604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/sc/iview/SciView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
10461046
@Suppress("UNUSED_PARAMETER")
10471047
@EventHandler
10481048
protected fun onNodeAdded(event: NodeAddedEvent?) {
1049-
mainWindow.rebuildSceneTree()
1049+
needSceneUpdate = true
10501050
}
10511051

10521052
@Suppress("UNUSED_PARAMETER")

0 commit comments

Comments
 (0)