mirror of
https://github.com/godotengine/godot.git
synced 2024-11-11 06:33:10 +00:00
Prevent visibility notification been called twice in object creation
This commit is contained in:
parent
3a5b25d5b4
commit
d42b17607e
@ -263,7 +263,8 @@ bool CanvasItem::is_visible_in_tree() const {
|
||||
|
||||
void CanvasItem::_propagate_visibility_changed(bool p_visible) {
|
||||
|
||||
notification(NOTIFICATION_VISIBILITY_CHANGED);
|
||||
if (!first_draw)
|
||||
notification(NOTIFICATION_VISIBILITY_CHANGED);
|
||||
|
||||
if (p_visible)
|
||||
update(); //todo optimize
|
||||
|
Loading…
Reference in New Issue
Block a user