mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
remove the invalid id error when freeing a 3D joint, fixes #2383
This commit is contained in:
parent
be1f2a049f
commit
df5fa62ab9
@ -141,7 +141,7 @@ void Joint::_notification(int p_what) {
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
if (joint.is_valid()) {
|
||||
_update_joint(true);
|
||||
PhysicsServer::get_singleton()->free(joint);
|
||||
//PhysicsServer::get_singleton()->free(joint);
|
||||
joint=RID();
|
||||
}
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user