mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Fix some code found by Coverity Scan and PVS Studio
This commit is contained in:
parent
e466dc2daa
commit
aab8da25ad
24 changed files with 71 additions and 65 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue