mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
Merge pull request #86479 from YeldhamDev/you_arent_built-in,_sod_off!
Fix scene parser reading non-built-in scripts for POT generation
This commit is contained in:
commit
198d0b6bc6
@ -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()) {
|
if (property_name == "script" && property_value.get_type() == Variant::OBJECT && !property_value.is_null()) {
|
||||||
// Parse built-in script.
|
// Parse built-in script.
|
||||||
Ref<Script> s = Object::cast_to<Script>(property_value);
|
Ref<Script> s = Object::cast_to<Script>(property_value);
|
||||||
|
if (!s->is_built_in()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
String extension = s->get_language()->get_extension();
|
String extension = s->get_language()->get_extension();
|
||||||
if (EditorTranslationParser::get_singleton()->can_parse(extension)) {
|
if (EditorTranslationParser::get_singleton()->can_parse(extension)) {
|
||||||
Vector<String> temp;
|
Vector<String> temp;
|
||||||
|
Loading…
Reference in New Issue
Block a user