Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Jan 22, 2025
1 parent a6598aa commit 151faaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ void MechanicalObject<DataTypes>::storeResetState()
if( !isIndependent() ) return;

// Save initial state for reset button
vOp(core::execparams::defaultInstance(), sofa::core::vec_id::write_access::restPosition, sofa::core::vec_id::read_access::position);
vOp(core::execparams::defaultInstance(), sofa::core::vec_id::write_access::resetPosition, sofa::core::vec_id::read_access::position);

// we only store a resetVelocity if the velocity is not zero
helper::ReadAccessor< Data<VecDeriv> > v = *this->read(core::vec_id::read_access::velocity);
Expand Down

0 comments on commit 151faaa

Please sign in to comment.