diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-20 21:10:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 21:10:10 +0200 |
commit | 5c66771e3ebccdfec55bb94ea521d2f24cb6200a (patch) | |
tree | 80bea3ee8792cb19e719221987faf1a2bf1e88a3 /modules/csg/csg_shape.cpp | |
parent | 7b88ac08437d3bd062efcbdd40c215b533032412 (diff) | |
parent | 072e40368e19e0f88ec1fbb61fe463a6fffcca36 (diff) | |
download | redot-engine-5c66771e3ebccdfec55bb94ea521d2f24cb6200a.tar.gz |
Merge pull request #29283 from qarmin/fix_some_always_same_values
Remove always true/false values
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r-- | modules/csg/csg_shape.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 1d27b9b6f4..a496a214fd 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -1816,11 +1816,9 @@ CSGBrush *CSGPolygon::_build_brush() { path_cache = path; - if (path_cache) { - path_cache->connect("tree_exited", this, "_path_exited"); - path_cache->connect("curve_changed", this, "_path_changed"); - path_cache = NULL; - } + path_cache->connect("tree_exited", this, "_path_exited"); + path_cache->connect("curve_changed", this, "_path_changed"); + path_cache = NULL; } curve = path->get_curve(); if (curve.is_null()) |