summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-12 11:18:25 +0100
committerGitHub <noreply@github.com>2019-02-12 11:18:25 +0100
commitf12b47b65e975f5aa5426792c86420c5360a09ef (patch)
tree522a238e86bbe6f821129bf1f54e6f44f0d706e8 /modules
parent7713ec86373b1b0305db28177f2128f4f8a363bc (diff)
parent095f472a0b162508f67604ea1409d38c52b1ce51 (diff)
Merge pull request #25783 from Xrayez/csg-shapes-visibility
Fix CSGShape not updating on changing visibility
Diffstat (limited to 'modules')
-rw-r--r--modules/csg/csg_shape.cpp7
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)