Fix CSG Path Polygon cache being removed after connect

fixes #30229
This commit is contained in:
Johannes Witt 2021-04-27 13:58:01 +02:00
parent 1943d2bda6
commit bab36f1273
No known key found for this signature in database
GPG key ID: B988B760383F3A91

View file

@ -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()) {