Always cache parent visibility in CanvasItem
(cherry picked from commit fd6a743823
)
This commit is contained in:
parent
8c372f4109
commit
df5df11916
|
@ -341,10 +341,8 @@ void CanvasItem::_notification(int p_what) {
|
|||
}
|
||||
|
||||
void CanvasItem::_window_visibility_changed() {
|
||||
if (visible) {
|
||||
_propagate_visibility_changed(window->is_visible());
|
||||
}
|
||||
}
|
||||
|
||||
void CanvasItem::queue_redraw() {
|
||||
if (!is_inside_tree()) {
|
||||
|
|
Loading…
Reference in New Issue