Merge pull request #88521 from YeldhamDev/atr_regression
Fix regression in auto translation overhaul
This commit is contained in:
@ -110,14 +110,12 @@ void Node::_notification(int p_notification) {
|
|||||||
// Don't translate UI elements when they're being edited.
|
// Don't translate UI elements when they're being edited.
|
||||||
if (is_part_of_edited_scene()) {
|
if (is_part_of_edited_scene()) {
|
||||||
set_message_translation(false);
|
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) {
|
if (data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) {
|
||||||
notification(NOTIFICATION_TRANSLATION_CHANGED);
|
notification(NOTIFICATION_TRANSLATION_CHANGED);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
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()));
|
||||||
|
|||||||
Reference in New Issue
Block a user