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:
authorCampbell Barton <ideasman42@gmail.com>2012-02-24 09:56:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-24 09:56:06 +0400
commit6b85b96952becb00c6ad1ec185a9ac229a3ea344 (patch)
treeebad6e50b1fef40754df90a0590153155273b4cf /source/blender/editors/mesh
parentb9b0c3dfb44e929b4b9f7181e8ee16ea7cff8deb (diff)
bmesh py api (some api changes and doc additions)
* remove 'select' and 'hide' from BMLoop * remove BMesh.update * add BMesh.normal_update(skip_hidden=False) * add BMElemSet.index_update(), eg: bm.verts.index_update() bmesh api * BM_mesh_normals_update() now takes skip_hidden as an argument (previously this was default behavior), however this isnt good when using BMesh modifiers, where you want all normals to be recalculated. * add bm_iter_itype_htype_map[], to get the iter type from a BMesh iterator.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/bmesh_selecthistory.c2
-rw-r--r--source/blender/editors/mesh/bmesh_tools.c2
-rw-r--r--source/blender/editors/mesh/bmesh_utils.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/bmesh_selecthistory.c b/source/blender/editors/mesh/bmesh_selecthistory.c
index a242356f1ab..ed3bd0c8a87 100644
--- a/source/blender/editors/mesh/bmesh_selecthistory.c
+++ b/source/blender/editors/mesh/bmesh_selecthistory.c
@@ -30,7 +30,7 @@
#include "BKE_tessmesh.h"
-/* these wrap equivilent bmesh functions. I'm in two minds of it we should
+/* these wrap equivalent bmesh functions. I'm in two minds of it we should
* just use the bm functions directly; on the one hand, there's no real
* need (at the moment) to wrap them, but on the other hand having these
* wrapped avoids a confusing mess of mixing BM_ and EDBM_ namespaces. */
diff --git a/source/blender/editors/mesh/bmesh_tools.c b/source/blender/editors/mesh/bmesh_tools.c
index 5225b704a7f..972236ab411 100644
--- a/source/blender/editors/mesh/bmesh_tools.c
+++ b/source/blender/editors/mesh/bmesh_tools.c
@@ -3262,7 +3262,7 @@ static int mesh_separate_selected(Main *bmain, Scene *scene, Base *editbase, wmO
EDBM_CallOpf(em, wmop, "del geom=%hvef context=%i", BM_ELEM_SELECT, DEL_VERTS);
- BM_mesh_normals_update(bmnew);
+ BM_mesh_normals_update(bmnew, TRUE);
BMO_op_callf(bmnew, "bmesh_to_mesh mesh=%p object=%p notesselation=%b",
basenew->object->data, basenew->object, TRUE);
diff --git a/source/blender/editors/mesh/bmesh_utils.c b/source/blender/editors/mesh/bmesh_utils.c
index 0f49ffa78e8..da1904cf11a 100644
--- a/source/blender/editors/mesh/bmesh_utils.c
+++ b/source/blender/editors/mesh/bmesh_utils.c
@@ -50,7 +50,7 @@
void EDBM_RecalcNormals(BMEditMesh *em)
{
- BM_mesh_normals_update(em->bm);
+ BM_mesh_normals_update(em->bm, TRUE);
}
void EDBM_ClearMesh(BMEditMesh *em)