Skip to content

Commit 9e46d69

Browse files
committed
Merge pull request #108772 from timothyqiu/second-level-inherit
Fix root auto-translate mode ignored for child nodes when generating POT
2 parents 5c3990c + 9a050c5 commit 9e46d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/translations/packed_scene_translation_parser_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
106106
// If `auto_translate_mode` wasn't found, that means it is set to its default value (`AUTO_TRANSLATE_MODE_INHERIT`).
107107
if (!auto_translate_mode_found) {
108108
int idx_last = atr_owners.size() - 1;
109-
if (idx_last > 0 && parent_path.begins_with(String(atr_owners[idx_last].first))) {
109+
if (idx_last >= 0 && parent_path.begins_with(String(atr_owners[idx_last].first))) {
110110
auto_translating = atr_owners[idx_last].second;
111111
} else {
112112
atr_owners.push_back(Pair(state->get_node_path(i), true));

0 commit comments

Comments
 (0)