Blender Git Commit Log

Git Commits -> Revision ca05219

Revision ca05219 by Campbell Barton (master)
March 27, 2012, 00:01 (GMT)
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.

Commit Details:

Full Hash: ca05219f3ec3574d2e1cb9c8eaa2790f685f26bb
SVN Revision: 45196
Parent Commit: 4d802ff
Lines Changed: +109, -193

13 Modified Paths:

/source/blender/blenkernel/BKE_tessmesh.h (+0, -4) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+2, -1) (Diff)
/source/blender/editors/include/ED_mesh.h (+2, -0) (Diff)
/source/blender/editors/mesh/editmesh_add.c (+3, -12) (Diff)
/source/blender/editors/mesh/editmesh_knife.c (+1, -2) (Diff)
/source/blender/editors/mesh/editmesh_select.c (+6, -14) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+57, -120) (Diff)
/source/blender/editors/mesh/editmesh_utils.c (+15, -9) (Diff)
/source/blender/editors/object/object_edit.c (+8, -2) (Diff)
/source/blender/editors/util/undo.c (+0, -15) (Diff)
/source/blender/makesdna/DNA_object_types.h (+7, -6) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+7, -7) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021