Skip to content

Commit

Permalink
Make BeltNode phetioReadOnly: true, see #307
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Jan 9, 2020
1 parent 9140b12 commit d1e18ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5963,7 +5963,7 @@ window.phet.phetio.phetioElementsBaseline = assert &&
"phetioHighFrequency": false,
"phetioIsArchetype": false,
"phetioPlayback": false,
"phetioReadOnly": false,
"phetioReadOnly": true,
"phetioState": false,
"phetioStudioControl": true,
"phetioTypeName": "NodeIO"
Expand All @@ -5976,7 +5976,7 @@ window.phet.phetio.phetioElementsBaseline = assert &&
"phetioHighFrequency": false,
"phetioIsArchetype": false,
"phetioPlayback": false,
"phetioReadOnly": false,
"phetioReadOnly": true,
"phetioState": true,
"phetioStudioControl": true,
"phetioTypeName": "NumberPropertyIO"
Expand All @@ -5989,7 +5989,7 @@ window.phet.phetio.phetioElementsBaseline = assert &&
"phetioHighFrequency": false,
"phetioIsArchetype": false,
"phetioPlayback": false,
"phetioReadOnly": false,
"phetioReadOnly": true,
"phetioState": true,
"phetioStudioControl": true,
"phetioTypeName": "PropertyIO<NullableIO<BooleanIO>>"
Expand All @@ -6002,7 +6002,7 @@ window.phet.phetio.phetioElementsBaseline = assert &&
"phetioHighFrequency": false,
"phetioIsArchetype": false,
"phetioPlayback": false,
"phetioReadOnly": false,
"phetioReadOnly": true,
"phetioState": true,
"phetioStudioControl": true,
"phetioTypeName": "PropertyIO<BooleanIO>"
Expand Down
3 changes: 2 additions & 1 deletion js/systems/view/SystemsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ define( require => {
const beltNode = new BeltNode(
model.belt,
modelViewTransform, {
tandem: energyConvertersTandem.createTandem( 'beltNode' )
tandem: energyConvertersTandem.createTandem( 'beltNode' ),
phetioReadOnly: true
}
);
const solarPanelNode = new SolarPanelNode(
Expand Down

0 comments on commit d1e18ae

Please sign in to comment.