summaryrefslogtreecommitdiffstats
path: root/modules/csg/csg_shape.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-20 16:59:48 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-20 16:59:48 +0200
commit072e40368e19e0f88ec1fbb61fe463a6fffcca36 (patch)
tree2a5c9383550dc22392bb210d5be570e1baa33fe2 /modules/csg/csg_shape.cpp
parent7a8dcb9a114d742f9bc1e269d738903c00729b8b (diff)
downloadredot-engine-072e40368e19e0f88ec1fbb61fe463a6fffcca36.tar.gz
Fix always true/false values
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r--modules/csg/csg_shape.cpp8
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())