Merge pull request #53335 from LATRio/53331_2

This commit is contained in:
Rémi Verschelde 2021-10-03 10:17:49 +02:00 committed by GitHub
commit e92818b85a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ void SoftBodyBullet::reset_all_node_mass() {
}
void SoftBodyBullet::reset_all_node_positions() {
if (soft_mesh.is_null()) {
if (soft_mesh.is_null() || !bt_soft_body) {
return;
}
@ -246,6 +246,10 @@ void SoftBodyBullet::reset_all_node_positions() {
}
void SoftBodyBullet::set_activation_state(bool p_active) {
if (!bt_soft_body) {
return;
}
if (p_active) {
bt_soft_body->setActivationState(ACTIVE_TAG);
} else {