Fix scene parser reading non-built-in scripts for POT generation

This commit is contained in:
Michael Alexsander 2023-12-23 21:18:18 -03:00
parent 13a0d6e9b2
commit 27ec41e91a
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA

View file

@ -80,6 +80,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;