瀏覽代碼

Fix CSG Path Polygon cache being removed after connect

fixes #30229
Johannes Witt 4 年之前
父節點
當前提交
bab36f1273
共有 1 個文件被更改,包括 0 次插入1 次删除
  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("tree_exited", callable_mp(this, &CSGPolygon3D::_path_exited));
 			path_cache->connect("curve_changed", callable_mp(this, &CSGPolygon3D::_path_changed));
 			path_cache->connect("curve_changed", callable_mp(this, &CSGPolygon3D::_path_changed));
-			path_cache = nullptr;
 		}
 		}
 		curve = path->get_curve();
 		curve = path->get_curve();
 		if (curve.is_null()) {
 		if (curve.is_null()) {