diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-06-28 17:00:18 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-06-28 17:01:35 -0300 |
commit | db3b05d2893dcaddeb3bcb10b845ff150eb50895 (patch) | |
tree | e19d761357300ba03360593e3cbdda01e87f215e /scene/main/scene_tree.cpp | |
parent | 9e54e1f34f7ee0b100b45fa2388f25096eb90670 (diff) | |
download | redot-engine-db3b05d2893dcaddeb3bcb10b845ff150eb50895.tar.gz |
Reworked translation system
-Label and Button reload translation on the fly
-Resources are loaded and reload depending on locale
Diffstat (limited to 'scene/main/scene_tree.cpp')
-rw-r--r-- | scene/main/scene_tree.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 39d5469360..479abccda6 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -687,7 +687,9 @@ void SceneTree::_notification(int p_notification) { get_root()->propagate_notification(p_notification); } break; case NOTIFICATION_TRANSLATION_CHANGED: { - get_root()->propagate_notification(Node::NOTIFICATION_TRANSLATION_CHANGED); + if (!is_editor_hint()) { + get_root()->propagate_notification(Node::NOTIFICATION_TRANSLATION_CHANGED); + } } break; case NOTIFICATION_WM_UNFOCUS_REQUEST: { |