Sfoglia il codice sorgente

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

Juan Linietsky 9 anni fa
parent
commit
df5fa62ab9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;