You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Revert "Prevent visibility notification been called twice in object creation"
This reverts commit 826108efec.
This caused a regression (#18614), and potentially other unintended regressions.
This commit is contained in:
@@ -263,8 +263,7 @@ bool CanvasItem::is_visible_in_tree() const {
|
||||
|
||||
void CanvasItem::_propagate_visibility_changed(bool p_visible) {
|
||||
|
||||
if (!first_draw)
|
||||
notification(NOTIFICATION_VISIBILITY_CHANGED);
|
||||
notification(NOTIFICATION_VISIBILITY_CHANGED);
|
||||
|
||||
if (p_visible)
|
||||
update(); //todo optimize
|
||||
|
||||
Reference in New Issue
Block a user