From df5fa62ab955437f05bfd7acdf6ed61d6d9c827e Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 2 Jan 2016 08:36:40 -0300 Subject: [PATCH] remove the invalid id error when freeing a 3D joint, fixes #2383 --- scene/3d/physics_joint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/physics_joint.cpp b/scene/3d/physics_joint.cpp index 20603125988..3f03b2aab3a 100644 --- a/scene/3d/physics_joint.cpp +++ b/scene/3d/physics_joint.cpp @@ -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;