diff options
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 03ded30fb59..4d0e67eafee 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -440,11 +440,17 @@ void ED_object_enter_editmode(bContext *C, int flag) ob->mode= OB_MODE_EDIT; if (ob->type==OB_MESH) { + BMEditMesh *em; ok= 1; - scene->obedit= ob; // context sees this - + scene->obedit = ob; /* context sees this */ + EDBM_MakeEditBMesh(CTX_data_tool_settings(C), scene, ob); + em = BMEdit_FromObject(ob); + if (LIKELY(em)) { + BMEdit_RecalcTessellation(em); + } + WM_event_add_notifier(C, NC_SCENE|ND_MODE|NS_EDITMODE_MESH, scene); } else if (ob->type==OB_ARMATURE) { |