diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-11-23 10:32:00 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-11-25 15:02:33 -0700 |
commit | faca8b77aa045a276f4ecdab1c0049755a1351ca (patch) | |
tree | 57e19a7d618bc4be6ce332ba62bf6cbe69d2ccef /editor/quick_open.cpp | |
parent | 50db0e66ac8c00f176c706cee0c3a5469453acce (diff) |
Fixed ccd enabled by default on Bullet bodies
It was due to main_shape_changed being called two times for each
added body. The first time it disables ccd, which sets the internal ccd
threshold to be 10000. The second time, it enables ccd again because
the internal threshold is > 0.
Bodies are now consistently set with a ccd threshold of 0 when ccd is
disabled.
This was causing crashing asserts in Bullet when adding bodies in some
scenarios, in btVector3::normalize():
btAssert(!fuzzyZero());
These crashes will still happen with ccd enabled.
Diffstat (limited to 'editor/quick_open.cpp')
0 files changed, 0 insertions, 0 deletions