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

[SofaBaseMechanics] Fix warning scene mass #779

Merged
merged 3 commits into from
Sep 26, 2018

Conversation

hugtalbot
Copy link
Contributor

@hugtalbot hugtalbot commented Sep 20, 2018

FIX some scene files using the mass and having issues with mass datanames (totalmass instead of totalMass)
FIX initialization in UniformMass.cpp due to wrong default filename in Rigid case

Fix #724


This PR:

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

Reviewers will merge only if all these checks are true.

@hugtalbot hugtalbot added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Sep 20, 2018
@hugtalbot
Copy link
Contributor Author

[ci-build][with-scene-tests]

d_filenameMass.setReadOnly(false) ;
d_filenameMass.setValue("") ;
d_filenameMass.setReadOnly(true) ;
d_filenameMass.setValue("unused") ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does the "unused" value do ?

Copy link
Contributor Author

@hugtalbot hugtalbot Sep 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It set a default value to the filename data.
this is maybe not really clean for the filename initialization process. I agree

@epernod
Copy link
Contributor

epernod commented Sep 21, 2018

@hugtalbot do you confirm it will solve the issue #779 ?

@hugtalbot
Copy link
Contributor Author

No it fixes the #724

@epernod
Copy link
Contributor

epernod commented Sep 25, 2018

yes it is what I wanted to point... cool!

@guparan guparan changed the title Fix warning scene mass [SofaBaseMechanics] Fix warning scene mass Sep 26, 2018
@guparan guparan 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 Sep 26, 2018
@hugtalbot hugtalbot merged commit 842f81a into sofa-framework:master Sep 26, 2018
@guparan guparan added this to the v18.12 milestone Oct 26, 2018
@hugtalbot hugtalbot deleted the fix_warning_scene_mass branch August 30, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants