-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[All] Remove last deprecated VecId and use constexpr vecids #5211
[All] Remove last deprecated VecId and use constexpr vecids #5211
Conversation
[ci-build][with-all-tests] |
f7ba04d
to
a981fd7
Compare
@@ -1032,7 +1032,7 @@ void MechanicalObject<DataTypes>::init() | |||
//case if X0 has been set but not X | |||
if (read(core::vec_id::read_access::restPosition)->getValue().size() > x_wA.size()) | |||
{ | |||
vOp(core::execparams::defaultInstance(), core::VecId::position(), core::VecId::restPosition()); | |||
vOp(core::execparams::defaultInstance(), sofa::core::vec_id::write_access::position, sofa::core::vec_id::read_access::restPosition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One is write and the other one is read, is that correct (seem right to me, we don't want to override the restPosition, but I prefer asking)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
virtual void vOp(const ExecParams* params, VecId v, |
first vecid is writable, next ones are read-only vecid
Sofa/Component/StateContainer/src/sofa/component/statecontainer/MechanicalObject.inl
Show resolved
Hide resolved
Sofa/Component/StateContainer/src/sofa/component/statecontainer/MechanicalObject.inl
Show resolved
Hide resolved
Sofa/Component/StateContainer/src/sofa/component/statecontainer/MechanicalObject.inl
Show resolved
Hide resolved
Sofa/Component/StateContainer/src/sofa/component/statecontainer/MechanicalObject.inl
Show resolved
Hide resolved
86ffe66
to
5de59d1
Compare
5de59d1
to
151faaa
Compare
Not done with Find/Replace dumbly because some functions were using the "write" access when they need a read access only.
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if