diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-27 04:01:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-27 04:01:35 +0400 |
commit | ca05219f3ec3574d2e1cb9c8eaa2790f685f26bb (patch) | |
tree | b4cfdda1c423fe0552f024c06363272c5f3d8eff /source/blender/blenkernel/BKE_tessmesh.h | |
parent | 4d802ff682b81143012d9a10cf6a58322dd18d89 (diff) |
fix [#30651] bpy.ops.object.mode_set(...) editmode removes faces.
problem was that BMesh had tessellation call when undo pushes were called.
if python called an operator with no undo push, tessfaces would not be created.
fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.
Diffstat (limited to 'source/blender/blenkernel/BKE_tessmesh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_tessmesh.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_tessmesh.h b/source/blender/blenkernel/BKE_tessmesh.h index 947b980bb75..407b96320a4 100644 --- a/source/blender/blenkernel/BKE_tessmesh.h +++ b/source/blender/blenkernel/BKE_tessmesh.h @@ -80,10 +80,6 @@ typedef struct BMEditMesh { int mirr_free_arrays; } BMEditMesh; -/* undo triggers editmesh tessface update, this is odd but works OK. - * BMESH_TODO, look into having the update elsewhere. */ -#define BMESH_EM_UNDO_RECALC_TESSFACE_WORKAROUND - void BMEdit_RecalcTessellation(BMEditMesh *tm); BMEditMesh *BMEdit_Create(BMesh *bm, int do_tessellate); BMEditMesh *BMEdit_Copy(BMEditMesh *tm); |