From b56774b5bf581031d669c6f1b57a695c2b00dc2e Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sun, 18 Feb 2024 19:32:20 -0300 Subject: [PATCH] Fix regression in auto translation overhaul --- scene/main/node.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 853c684b136a..352a05f2d793 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -110,14 +110,12 @@ void Node::_notification(int p_notification) { // Don't translate UI elements when they're being edited. if (is_part_of_edited_scene()) { set_message_translation(false); - } else if (data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) { - notification(NOTIFICATION_TRANSLATION_CHANGED); } -#else +#endif + if (data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) { notification(NOTIFICATION_TRANSLATION_CHANGED); } -#endif if (data.input) { add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));