Skip to content

Commit

Permalink
Merge pull request #88521 from YeldhamDev/atr_regression
Browse files Browse the repository at this point in the history
Fix regression in auto translation overhaul
  • Loading branch information
akien-mga committed Feb 18, 2024
2 parents d0f4f58 + b56774b commit ab4c5a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scene/main/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit ab4c5a5

Please sign in to comment.