Open AlbanOdot opened 2 years ago
So far I've tried to remove the draw function from CaribouForcefield (since it interacts with the gui) but it doesn't affect the result.
Étrange... The only reference to the MO position vector in these codes are const read only, so it should not affect anything...
I will try to have a closer look. Let me know if you find other hints.
For anyone having the same issue, a quick fix has been provided at Sofa issues.
I just encountered a bug that has been replicated on multiple computers when running the given script using python launcher In the script, the position is modified on the onAnimatedBeginEvent function call. We can see two behaviors.
By running :
python3 SofaBugCaribou.py
with self.MO.position.writeable() as pos:
python3 SofaBugCaribou.py gui
Commenting/uncommenting the material/constitutive law reveals that it's the HyperelasticForcefield that causes the problem.
This minimal scene replicates the bug: BugCaribou.zip