mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Prevent visibility notification been called twice in object creation
This commit is contained in:
@@ -263,6 +263,7 @@ bool CanvasItem::is_visible_in_tree() const {
|
|||||||
|
|
||||||
void CanvasItem::_propagate_visibility_changed(bool p_visible) {
|
void CanvasItem::_propagate_visibility_changed(bool p_visible) {
|
||||||
|
|
||||||
|
if (!first_draw)
|
||||||
notification(NOTIFICATION_VISIBILITY_CHANGED);
|
notification(NOTIFICATION_VISIBILITY_CHANGED);
|
||||||
|
|
||||||
if (p_visible)
|
if (p_visible)
|
||||||
|
|||||||
Reference in New Issue
Block a user