Merge pull request #25783 from Xrayez/csg-shapes-visibility

Fix CSGShape not updating on changing visibility
This commit is contained in:
Rémi Verschelde 2019-02-12 11:18:25 +01:00 committed by GitHub
commit f12b47b65e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)