From f3e823b1a69e84b140ee76a91d65a7680eb1bba0 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 24 Nov 2024 10:22:32 -0800 Subject: [PATCH] Update editor/import/3d/resource_importer_scene.cpp Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- editor/import/3d/resource_importer_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/3d/resource_importer_scene.cpp b/editor/import/3d/resource_importer_scene.cpp index ab9b62070081..6c45d891253a 100644 --- a/editor/import/3d/resource_importer_scene.cpp +++ b/editor/import/3d/resource_importer_scene.cpp @@ -2820,7 +2820,7 @@ void ResourceImporterScene::_generate_editor_preview_for_scene(const String &p_p return; } ERR_FAIL_COND_MSG(p_path.is_empty(), "Path is empty, cannot generate preview."); - ERR_FAIL_COND_MSG(!p_scene, "Scene is null, cannot generate preview."); + ERR_FAIL_NULL_MSG(p_scene, "Scene is null, cannot generate preview."); EditorInterface::get_singleton()->make_scene_preview(p_path, p_scene, 1024); }