Skip to content

Commit

Permalink
mRnaFragments are not grabbable, see issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
aadish committed Feb 8, 2017
1 parent e25e92e commit 78fcbe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ define( function( require ) {
// Grow the mRNA fragment, release it if it is time to do so.
if ( this.messengerRnaFragment === null ) {
this.messengerRnaFragment = new MessengerRnaFragment( biomolecule.getModel(), biomolecule.getPosition() );
this.messengerRnaFragment.movableByUserProperty.set(false);
biomolecule.getModel().addMobileBiomolecule( this.messengerRnaFragment );
this.targetFragmentLength = MRNA_FRAGMENT_LENGTH_RANGE.min +
phet.joist.random.nextDouble() * MRNA_FRAGMENT_LENGTH_RANGE.getLength();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ define( function( require ) {
* @param {RnaDestroyerAttachmentStateMachine} rnaDestroyerAttachmentStateMachine
*/
function MRnaDestroyerMovingTowardAttachmentState( rnaDestroyerAttachmentStateMachine ) {
GenericMovingTowardsAttachmentState.call( this );
GenericMovingTowardsAttachmentState.call( this, rnaDestroyerAttachmentStateMachine );
this.rnaDestroyerAttachmentStateMachine = rnaDestroyerAttachmentStateMachine;
}

Expand Down

0 comments on commit 78fcbe0

Please sign in to comment.