diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-16 21:24:53 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-16 21:24:53 +0200 |
| commit | cdef53df1ed3f37cb77a69df4530bc766f2f1617 (patch) | |
| tree | c55e2705e26eab60501e3d3499f6676975f5c5de /editor/export | |
| parent | 691eecd9b61994f0086a9aedfc5e5f058304aadf (diff) | |
| parent | 75ee58fd0476360c67375cf403f06644a0aa117e (diff) | |
| download | redot-engine-cdef53df1ed3f37cb77a69df4530bc766f2f1617.tar.gz | |
Merge pull request #81705 from AThousandShips/null_check_editor
[Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'editor/export')
| -rw-r--r-- | editor/export/editor_export_platform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index c07f17b46f..b3fefaafc6 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -756,7 +756,7 @@ String EditorExportPlatform::_export_customize(const String &p_path, LocalVector Ref<PackedScene> ps = ResourceLoader::load(p_path, "PackedScene", ResourceFormatLoader::CACHE_MODE_IGNORE); ERR_FAIL_COND_V(ps.is_null(), p_path); Node *node = ps->instantiate(PackedScene::GEN_EDIT_STATE_INSTANCE); // Make sure the child scene root gets the correct inheritance chain. - ERR_FAIL_COND_V(node == nullptr, p_path); + ERR_FAIL_NULL_V(node, p_path); if (!customize_scenes_plugins.is_empty()) { for (Ref<EditorExportPlugin> &plugin : customize_scenes_plugins) { Node *customized = plugin->_customize_scene(node, p_path); |
