diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-06-20 16:59:48 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-06-20 16:59:48 +0200 |
commit | 072e40368e19e0f88ec1fbb61fe463a6fffcca36 (patch) | |
tree | 2a5c9383550dc22392bb210d5be570e1baa33fe2 /modules/csg/csg_shape.cpp | |
parent | 7a8dcb9a114d742f9bc1e269d738903c00729b8b (diff) | |
download | redot-engine-072e40368e19e0f88ec1fbb61fe463a6fffcca36.tar.gz |
Fix 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()) |