diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-28 12:47:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-28 13:49:36 +0300 |
commit | 00230608936e4bf2143ac4caaff3fdcbe77bda3e (patch) | |
tree | 4e692fb780be5dfe351091c2e00855653b2de624 /source/blender/editors/mesh/editmesh_select.c | |
parent | 12622ce2f7fc8322c4d1ff020f655b138ef1e293 (diff) |
Cleanup: compiler warnings.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_select.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 7ecd2c69838..280b8f91151 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -1754,9 +1754,13 @@ static bool mouse_mesh_loop(bContext *C, const int mval[2], bool extend, bool de ED_view3d_viewcontext_init_object(&vc, basact->object); em = vc.em; } + else { + em = NULL; + } + em_original->selectmode = selectmode; - if (eed == NULL) { + if (em == NULL || eed == NULL) { return false; } |