Browse Source

Merge pull request #112587 from timothyqiu/not-script

Fix crash during POT generation due to scene dependency issues
Thaddeus Crews 1 month ago
parent
commit
c37aa90b70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/translations/packed_scene_translation_parser_plugin.cpp

+ 1 - 1
editor/translations/packed_scene_translation_parser_plugin.cpp

@@ -170,7 +170,7 @@ 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()) {
+				if (s.is_null() || !s->is_built_in()) {
 					continue;
 					continue;
 				}
 				}