You've already forked godot
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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user