Add missing/incorrect selection flushes.
authorNicholas Bishop <nicholasbishop@gmail.com>
Mon, 11 Jun 2012 10:14:46 +0000 (10:14 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Mon, 11 Jun 2012 10:14:46 +0000 (10:14 +0000)
Added selection flush after loop cut, changed select_linked_pick's
flush to use the em selection flag.

Fixes bug [#31715] Cases where verts and edges are selected but not
relevant faces

source/blender/editors/mesh/editmesh_loopcut.c
source/blender/editors/mesh/editmesh_select.c

index 185c804661db5ea34d474451896e467609dcd43d..15e3033b7eb162fccbad4b93cd99e4f9650fe5aa 100644 (file)
@@ -329,6 +329,8 @@ static void ringsel_finish(bContext *C, wmOperator *op)
 
                                WM_event_add_notifier(C, NC_SCENE | ND_TOOLSETTINGS, CTX_data_scene(C));
                        }
+                       else
+                               EDBM_selectmode_flush(lcd->em);
 
                        WM_event_add_notifier(C, NC_GEOM | ND_SELECT | ND_DATA, lcd->ob->data);
                        DAG_id_tag_update(lcd->ob->data, 0);
index 0a8fe142aaf59fb34d45a507ad668126a4d0e06a..57bce6b9de4f081090de6dbbe9f09c3789b98330 100644 (file)
@@ -1889,7 +1889,7 @@ static int edbm_select_linked_pick_invoke(bContext *C, wmOperator *op, wmEvent *
                }
                BMW_end(&walker);
 
-               BM_mesh_select_mode_flush(bm);
+               EDBM_selectmode_flush(em);
        }
 
        WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit);