From 095f472a0b162508f67604ea1409d38c52b1ce51 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Sun, 10 Feb 2019 23:52:56 +0200 Subject: 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. --- modules/csg/csg_shape.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules') 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) -- cgit v1.2.3