Ver Fonte

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

Juan Linietsky há 9 anos atrás
pai
commit
df5fa62ab9
1 ficheiros alterados com 1 adições e 1 exclusões
  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;