prepare for flagging the bmesh has having invalid index values, so we can skip loopin...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 16 Nov 2011 12:38:40 +0000 (12:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 16 Nov 2011 12:38:40 +0000 (12:38 +0000)
commitda849bbfc042a2f879031f3736974ade45348d6e
treee810725d273a5ac4ae612835d51a58267c4c1ed8
parentdfe90e54cda718acbb1ce2fabe69a1fc317899c1
prepare for flagging the bmesh has having invalid index values, so we can skip looping over all elements if its already valid.

- went over every BM_SetIndex call and added comments about its use, if its setting dirty values or correct ones.
- replace loops over all elements _just_ to set index values, with a new function, BM_ElemIndex_Ensure(...), this will eventually only initialize values when they are dirty.
27 files changed:
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/editderivedbmesh.c
source/blender/bmesh/bmesh.h
source/blender/bmesh/bmesh_class.h
source/blender/bmesh/intern/bmesh_construct.c
source/blender/bmesh/intern/bmesh_mesh.c
source/blender/bmesh/intern/bmesh_newcore.c
source/blender/bmesh/intern/bmesh_polygon.c
source/blender/bmesh/operators/createops.c
source/blender/bmesh/operators/edgesplitop.c
source/blender/bmesh/operators/extrudeops.c
source/blender/bmesh/operators/mesh_conv.c
source/blender/bmesh/operators/mirror.c
source/blender/bmesh/operators/removedoubles.c
source/blender/bmesh/operators/utils.c
source/blender/editors/mesh/bmesh_select.c
source/blender/editors/mesh/bmeshutils.c
source/blender/editors/mesh/editbmesh_bvh.c
source/blender/editors/mesh/knifetool.c
source/blender/editors/mesh/meshtools.c
source/blender/editors/object/object_vgroup.c
source/blender/editors/space_view3d/view3d_snap.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/util/crazyspace.c
source/blender/editors/uvedit/uvedit_ops.c
source/blender/editors/uvedit/uvedit_unwrap_ops.c
source/blender/modifiers/intern/MOD_array.c