diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-06-05 12:07:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 12:07:05 +0200 |
commit | 36c70bbcd02c963f133ed4011006668a2f64197a (patch) | |
tree | cbe40933f2a58aadfafb76059b6395929d442068 /scene/2d/canvas_item.cpp | |
parent | 6e32a2886f6d816c1e7e1921d64ad931a0cfa20e (diff) | |
parent | 2935cd8a58af0e85e2c605e6ceb307807ab87bf2 (diff) |
Merge pull request #19377 from godotengine/revert-18172-fix_notification
Revert "Prevent visibility notification from being called twice in object creation"
Diffstat (limited to 'scene/2d/canvas_item.cpp')
-rw-r--r-- | scene/2d/canvas_item.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 27bdeda4a8..f1c09594da 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -272,8 +272,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 |