diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 53ecb1d7898..8dc18ec56e9 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -140,6 +140,7 @@ void Node::_notification(int p_notification) { void Node::_propagate_ready() { + data.ready_notified=true; data.blocked++; for (int i=0;idata.ready_notified) { // No parent (root) or parent ready + _propagate_ready(); //reverse_notification(NOTIFICATION_READY); + } tree_changed_b=data.tree; @@ -2284,6 +2287,7 @@ Node::Node() { data.fixed_process=false; data.idle_process=false; data.inside_tree=false; + data.ready_notified=false; data.owner=NULL; data.OW=NULL; diff --git a/scene/main/node.h b/scene/main/node.h index 18e403cd615..c9d6166ee78 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -85,6 +85,7 @@ private: StringName name; SceneTree *tree; bool inside_tree; + bool ready_notified; #ifdef TOOLS_ENABLED NodePath import_path; //path used when imported, used by scene editors to keep tracking #endif