mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix invisible CanvasItem visibility issue
This commit is contained in:
parent
c77348b468
commit
dce6cb7393
3 changed files with 32 additions and 34 deletions
|
|
@ -58,11 +58,7 @@ void CanvasLayer::set_visible(bool p_visible) {
|
|||
if (c) {
|
||||
RenderingServer::get_singleton()->canvas_item_set_visible(c->get_canvas_item(), p_visible && c->is_visible());
|
||||
|
||||
if (c->is_visible()) {
|
||||
c->_propagate_visibility_changed(p_visible);
|
||||
} else {
|
||||
c->parent_visible_in_tree = p_visible;
|
||||
}
|
||||
c->_propagate_visibility_changed(p_visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue