Skip to content
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

[SofaGeneralLoader] allow ReadState at init #1654

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

EulalieCoevoet
Copy link
Contributor

@EulalieCoevoet EulalieCoevoet commented Dec 8, 2020

ReadState was only reading the file and making the changes after the first time step (or later).
This PR allows to load the state at init.

Edit: I forgot to mention that it shouldn't change the behavior of existing scenes.
The file loaded by ReadState has time values that define at which time steps of the simulation each different state should be applied. Currently T=0 is not working, this PR simply allows that.


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

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@hugtalbot hugtalbot added enhancement About a possible enhancement pr: status to review To notify reviewers to review this pull-request labels Dec 9, 2020
@hugtalbot hugtalbot added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Dec 15, 2020
@damienmarchal
Copy link
Contributor

Read... then merge....thanks @EulalieCoevoet

@damienmarchal damienmarchal merged commit 5438bb0 into sofa-framework:master Dec 16, 2020
guparan pushed a commit that referenced this pull request Dec 17, 2020
[SofaGeneralLoader] allow ReadState at init
@guparan guparan added this to the v20.12 milestone Jan 18, 2021
@EulalieCoevoet EulalieCoevoet deleted the readState branch January 25, 2021 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement About a possible enhancement pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants