Skip to content

Commit

Permalink
Merge pull request #86479 from YeldhamDev/you_arent_built-in,_sod_off!
Browse files Browse the repository at this point in the history
Fix scene parser reading non-built-in scripts for POT generation
  • Loading branch information
akien-mga committed Mar 26, 2024
2 parents bec4de9 + 27ec41e commit 198d0b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/plugins/packed_scene_translation_parser_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
if (property_name == "script" && property_value.get_type() == Variant::OBJECT && !property_value.is_null()) {
// Parse built-in script.
Ref<Script> s = Object::cast_to<Script>(property_value);
if (!s->is_built_in()) {
continue;
}

String extension = s->get_language()->get_extension();
if (EditorTranslationParser::get_singleton()->can_parse(extension)) {
Vector<String> temp;
Expand Down

0 comments on commit 198d0b6

Please sign in to comment.