Skip to content

Commit

Permalink
Addressing when to interrupt everything or when to interrupt only the…
Browse files Browse the repository at this point in the history
… bodies, see #321

(cherry picked from commit 522a99a)
  • Loading branch information
AgustinVallejo committed Jan 10, 2024
1 parent 9836c6c commit 9286d65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/common/view/MySolarSystemScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ export default class MySolarSystemScreenView extends SolarSystemCommonScreenView
this.bottomLayer.addChild( new PathsCanvasNode( model.activeBodies, this.modelViewTransformProperty, this.visibleBoundsProperty, {
visibleProperty: this.visibleProperties.pathVisibleProperty
} ) );

model.interruptBodiesSubtreeEmitter.addListener( () => {
this.bodyNodes.forEach( bodyNode => {
bodyNode.interruptSubtreeInput();
} );
} );
}

public override step( dt: number ): void {
Expand Down

0 comments on commit 9286d65

Please sign in to comment.