You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Prevent infinite recursion in first _draw
This commit is contained in:
@@ -120,10 +120,6 @@ void Node::_notification(int p_notification) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) {
|
|
||||||
notification(NOTIFICATION_TRANSLATION_CHANGED);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.input) {
|
if (data.input) {
|
||||||
add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));
|
add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));
|
||||||
}
|
}
|
||||||
@@ -147,6 +143,12 @@ void Node::_notification(int p_notification) {
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case NOTIFICATION_POST_ENTER_TREE: {
|
||||||
|
if (data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) {
|
||||||
|
notification(NOTIFICATION_TRANSLATION_CHANGED);
|
||||||
|
}
|
||||||
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_EXIT_TREE: {
|
case NOTIFICATION_EXIT_TREE: {
|
||||||
ERR_FAIL_NULL(get_viewport());
|
ERR_FAIL_NULL(get_viewport());
|
||||||
ERR_FAIL_NULL(get_tree());
|
ERR_FAIL_NULL(get_tree());
|
||||||
|
|||||||
Reference in New Issue
Block a user