-
Notifications
You must be signed in to change notification settings - Fork 297
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
[MechanicalLoad] Replace doUpdateInternal by callback: ConstantFF #3924
[MechanicalLoad] Replace doUpdateInternal by callback: ConstantFF #3924
Conversation
[ci-build][with-all-tests] |
just for your 👁️ @damienmarchal |
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
…d/ConstantForceField.inl
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Is there a reason why not defining 4 callbacks instead of one with |
|
both comments:
are implemented in #3936 |
Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Show resolved
Hide resolved
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
PR passes now and includes:
|
Sofa/Component/MechanicalLoad/src/sofa/component/mechanicalload/ConstantForceField.inl
Outdated
Show resolved
Hide resolved
Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com>
waiting for your GO @alxbilger @damienmarchal |
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.
I still don't like that you keep empty functions with a comment explaining that the code changed. Git is made for that. I would remove reinit
and doUpdateInternal
. Otherwise, the PR looks ok even though I did not test it.
This PR has to be considered along with #4019 |
In the spirit of #3900 this PR applies the change on the ConstantForceField.
To be noted:
return
have been addedcomponentState
must be added to trigger the callbackBy 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