Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r--source/blender/editors/object/object_edit.c10
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) {