mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
bullet: Fixed deadlock when loading from collision solids
- Fixed deadlock when loading ghost nodes from collision solids and have non-identity scale applied. Signed-off-by: deflected <deflected@users.noreply.github.com>
This commit is contained in:
parent
9638eb47eb
commit
8ad4c8e23c
@ -97,7 +97,7 @@ do_transform_changed() {
|
||||
if (ts->has_scale()) {
|
||||
LVecBase3 scale = ts->get_scale();
|
||||
if (!scale.almost_equal(LVecBase3(1.0f, 1.0f, 1.0f))) {
|
||||
for (int i=0; i<get_num_shapes(); i++) {
|
||||
for (int i=0; i < _shapes.size(); i++) {
|
||||
PT(BulletShape) shape = _shapes[i];
|
||||
shape->do_set_local_scale(scale);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user