Merge pull request #25783 from Xrayez/csg-shapes-visibility
Fix CSGShape not updating on changing visibility
This commit is contained in:
commit
f12b47b65e
1 changed files with 7 additions and 0 deletions
|
@ -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 (p_what == NOTIFICATION_EXIT_TREE) {
|
||||||
|
|
||||||
if (parent)
|
if (parent)
|
||||||
|
|
Loading…
Reference in a new issue