skip recalculating tessface when adding objects if 'EnterEdit-mode' is disabled.
[blender.git] / source / blender / editors / mesh / editmesh_add.c
index 23f7c3073562ee718a1ef38d0f890e28677083fa..cd6063b12d0d1b18f9fe6ca3db13c1dd06377804 100644 (file)
@@ -86,7 +86,8 @@ static void make_prim_finish(bContext *C, Object *obedit, int *state, int enter_
         * to push this up to edges & faces. */
        EDBM_selectmode_flush_ex(em, SCE_SELECT_VERTEX);
 
-       EDBM_update_generic(C, em, TRUE);
+       /* only recalc editmode tessface if we are staying in editmode */
+       EDBM_update_generic(C, em, enter_editmode);
 
        /* userdef */
        if (*state && !enter_editmode) {