1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Merge pull request #44704 from madmiraal/fix-44510-3.2

[3.2] Add signal to inform joint that body has exited tree
This commit is contained in:
Rémi Verschelde
2021-01-13 17:16:19 +01:00
committed by GitHub
5 changed files with 95 additions and 6 deletions

View File

@@ -502,7 +502,7 @@ void SpaceBullet::remove_rigid_body_constraints(RigidBodyBullet *p_body) {
int constraints = btBody->getNumConstraintRefs();
if (constraints > 0) {
WARN_PRINT("A body connected to joints was removed. Ensure bodies are disconnected from joints before removing them.");
ERR_PRINT("A body connected to joints was removed.");
for (int i = 0; i < constraints; i++) {
dynamicsWorld->removeConstraint(btBody->getConstraintRef(i));
}