1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-03 19:11:41 +00:00

Don't send TRANSLATION_CHANGED outside tree

This commit is contained in:
kobewi
2025-02-08 16:14:05 +01:00
parent 36d90c73a8
commit 1680e9e77f

View File

@@ -1378,7 +1378,10 @@ void Node::_propagate_translation_domain_dirty() {
child->_propagate_translation_domain_dirty();
}
}
notification(NOTIFICATION_TRANSLATION_CHANGED);
if (is_inside_tree() && data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) {
notification(NOTIFICATION_TRANSLATION_CHANGED);
}
}
StringName Node::get_name() const {