diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-23 09:14:31 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-23 09:14:31 +0200 |
commit | aab8da25ad2c3e6d2df03abbc8e35c1725938c40 (patch) | |
tree | a98f3ddd124571378b146209beb308eb2768f9bc /editor/plugins | |
parent | e466dc2daa8eee7e6fb5a7fce40bf9e988a927cb (diff) |
Fix some code found by Coverity Scan and PVS Studio
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/mesh_library_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/mesh_library_editor_plugin.cpp b/editor/plugins/mesh_library_editor_plugin.cpp index e582f6ded2..1fc6dae978 100644 --- a/editor/plugins/mesh_library_editor_plugin.cpp +++ b/editor/plugins/mesh_library_editor_plugin.cpp @@ -201,6 +201,8 @@ void MeshLibraryEditor::_import_scene_cbk(const String &p_str) { ERR_FAIL_COND(ps.is_null()); Node *scene = ps->instance(); + ERR_FAIL_COND(!scene); + _import_scene(scene, mesh_library, option == MENU_OPTION_UPDATE_FROM_SCENE); memdelete(scene); |