Skip to content

Commit

Permalink
add a comment referencing #314
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jul 12, 2022
1 parent 26b9fe0 commit cf0c462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/common/model/PopulationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class PopulationModel extends PhetioObject {

// When a mutation has been applied, show the plots associated with that gene.
// unlinks are not necessary.
// Do not do this when restoring PhET-iO state, see https://github.com/phetsims/natural-selection/issues/314.
this.genePool.furGene.dominantAlleleProperty.link( dominantAllele => {
if ( !phet.joist.sim.isSettingPhetioStateProperty.value ) {
this.whiteFurVisibleProperty.value = !!dominantAllele;
Expand Down
1 change: 1 addition & 0 deletions js/common/view/pedigree/AllelesPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class Row extends VBox {

// Automatically make the alleles visible.
// Corresponding alleles should not be visible when the row is disabled.
// Do not do this when restoring PhET-iO state, see https://github.com/phetsims/natural-selection/issues/314.
if ( !phet.joist.sim.isSettingPhetioStateProperty.value ) {
visibleProperty.value = hasMutation;
}
Expand Down

0 comments on commit cf0c462

Please sign in to comment.