summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-19 00:09:22 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-19 00:09:22 +0100
commitab4c5a594ab11cf6446fa819de639bb71de9ccbf (patch)
treee05bb47d7c3be45df85083b6e768c577db667cfc
parentd0f4f58a8cb078e67a393ed3f018a4111bdf1cfd (diff)
parentb56774b5bf581031d669c6f1b57a695c2b00dc2e (diff)
downloadredot-engine-ab4c5a594ab11cf6446fa819de639bb71de9ccbf.tar.gz
Merge pull request #88521 from YeldhamDev/atr_regression
Fix regression in auto translation overhaul
-rw-r--r--scene/main/node.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index fe2665b06d..e814e4f0cd 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()));