Skip to content

Commit

Permalink
SciView: set active node only when centerOnNewNodes is true
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt committed Feb 9, 2024
1 parent 05e76f5 commit a28058f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/sc/iview/SciView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -890,10 +890,10 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
Utils.blockWhile({ this.find(n.name) == null }, 20)
//System.out.println("find(name) " + find(n.getName()) );
}
// Set new node as active and centered?
setActiveNode(n)
// Set new node as active and centered
if (centerOnNewNodes) {
centerOnNode(n)
setActiveNode(n)
}
if (activePublish) {
eventService.publish(NodeAddedEvent(n))
Expand Down

0 comments on commit a28058f

Please sign in to comment.