mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix root auto-translate mode ignored for child nodes when generating POT
This commit is contained in:
@@ -106,7 +106,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
|
|||||||
// If `auto_translate_mode` wasn't found, that means it is set to its default value (`AUTO_TRANSLATE_MODE_INHERIT`).
|
// If `auto_translate_mode` wasn't found, that means it is set to its default value (`AUTO_TRANSLATE_MODE_INHERIT`).
|
||||||
if (!auto_translate_mode_found) {
|
if (!auto_translate_mode_found) {
|
||||||
int idx_last = atr_owners.size() - 1;
|
int idx_last = atr_owners.size() - 1;
|
||||||
if (idx_last > 0 && parent_path.begins_with(String(atr_owners[idx_last].first))) {
|
if (idx_last >= 0 && parent_path.begins_with(String(atr_owners[idx_last].first))) {
|
||||||
auto_translating = atr_owners[idx_last].second;
|
auto_translating = atr_owners[idx_last].second;
|
||||||
} else {
|
} else {
|
||||||
atr_owners.push_back(Pair(state->get_node_path(i), true));
|
atr_owners.push_back(Pair(state->get_node_path(i), true));
|
||||||
|
|||||||
Reference in New Issue
Block a user