Explorar o código

remove the invalid id error when freeing a 3D joint, fixes #2383

Juan Linietsky %!s(int64=9) %!d(string=hai) anos
pai
achega
df5fa62ab9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/3d/physics_joint.cpp

+ 1 - 1
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;