diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-02-10 23:52:56 +0200 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-02-10 23:53:31 +0200 |
commit | 095f472a0b162508f67604ea1409d38c52b1ce51 (patch) | |
tree | 8c58951311e494f58119a0d4e9ed678d784e498d /modules/csg/csg_shape.cpp | |
parent | 6607c3c1c7dc7e6b3e381b71c6a46dcf59d3457b (diff) | |
download | redot-engine-095f472a0b162508f67604ea1409d38c52b1ce51.tar.gz |
Fix CSGShape not updating on changing visibility
Hiding CSGShape should force the CSG operation to skip it which is intented
behaviour according to how CSGBrush is created for each shape.
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r-- | modules/csg/csg_shape.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index f62e6f5c40..f274fff3f3 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -531,6 +531,13 @@ void CSGShape::_notification(int p_what) { } } + if (p_what == NOTIFICATION_VISIBILITY_CHANGED) { + + if (parent) { + parent->_make_dirty(); + } + } + if (p_what == NOTIFICATION_EXIT_TREE) { if (parent) |