Skip to content

Commit d5d29f9

Browse files
committed
Fix crash during POT generation due to scene dependency issues
1 parent 6fd949a commit d5d29f9

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
@@ -170,7 +170,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
170170
if (property_name == "script" && property_value.get_type() == Variant::OBJECT && !property_value.is_null()) {
171171
// Parse built-in script.
172172
Ref<Script> s = Object::cast_to<Script>(property_value);
173-
if (!s->is_built_in()) {
173+
if (s.is_null() || !s->is_built_in()) {
174174
continue;
175175
}
176176

0 commit comments

Comments
 (0)