Jelajahi Sumber

Fix CSG Path Polygon cache being removed after connect

fixes #30229
Johannes Witt 4 tahun lalu
induk
melakukan
bab36f1273
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      modules/csg/csg_shape.cpp

+ 0 - 1
modules/csg/csg_shape.cpp

@@ -1741,7 +1741,6 @@ CSGBrush *CSGPolygon3D::_build_brush() {
 
 			path_cache->connect("tree_exited", callable_mp(this, &CSGPolygon3D::_path_exited));
 			path_cache->connect("curve_changed", callable_mp(this, &CSGPolygon3D::_path_changed));
-			path_cache = nullptr;
 		}
 		curve = path->get_curve();
 		if (curve.is_null()) {