Send NC_SCENE|ND_TOOLSETTINGS notifier when select mode was forced to edge select
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 1 Sep 2010 17:03:31 +0000 (17:03 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 1 Sep 2010 17:03:31 +0000 (17:03 +0000)
in loop cut operator. Header buttons have "delayed" update without this notifier.

source/blender/editors/mesh/loopcut.c

index 488b59fa29ea1b43a990808f812d4aa6ec19a250..174207a71c50548cf79f974f918abb2ee84fa1d6 100644 (file)
@@ -278,6 +278,8 @@ static void ringsel_finish(bContext *C, wmOperator *op)
                                        em->selectmode &= ~SCE_SELECT_FACE;
                                CTX_data_tool_settings(C)->selectmode= em->selectmode;
                                EM_selectmode_set(em);
+
+                               WM_event_add_notifier(C, NC_SCENE|ND_TOOLSETTINGS, CTX_data_scene(C));
                        }
                        
                        DAG_id_flush_update(lcd->ob->data, OB_RECALC_DATA);