diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-19 00:09:22 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-19 00:09:22 +0100 |
commit | ab4c5a594ab11cf6446fa819de639bb71de9ccbf (patch) | |
tree | e05bb47d7c3be45df85083b6e768c577db667cfc | |
parent | d0f4f58a8cb078e67a393ed3f018a4111bdf1cfd (diff) | |
parent | b56774b5bf581031d669c6f1b57a695c2b00dc2e (diff) | |
download | redot-engine-ab4c5a594ab11cf6446fa819de639bb71de9ccbf.tar.gz |
Merge pull request #88521 from YeldhamDev/atr_regression
Fix regression in auto translation overhaul
-rw-r--r-- | scene/main/node.cpp | 6 |
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())); |