From cf0c462934c336e8ea262f3e89e7487e858446a3 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Tue, 12 Jul 2022 09:59:58 -0600 Subject: [PATCH] add a comment referencing https://github.com/phetsims/natural-selection/issues/314 --- js/common/model/PopulationModel.js | 1 + js/common/view/pedigree/AllelesPanel.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/common/model/PopulationModel.js b/js/common/model/PopulationModel.js index 630f3fa9..45ff87b2 100644 --- a/js/common/model/PopulationModel.js +++ b/js/common/model/PopulationModel.js @@ -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; diff --git a/js/common/view/pedigree/AllelesPanel.js b/js/common/view/pedigree/AllelesPanel.js index cd62c548..96489680 100644 --- a/js/common/view/pedigree/AllelesPanel.js +++ b/js/common/view/pedigree/AllelesPanel.js @@ -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; }