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/modifiers/intern
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/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_bevel.c2
-rw-r--r--source/blender/modifiers/intern/MOD_edgesplit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c
index 8aefd928858..92584800f98 100644
--- a/source/blender/modifiers/intern/MOD_bevel.c
+++ b/source/blender/modifiers/intern/MOD_bevel.c
@@ -121,7 +121,7 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob,
em = DM_to_editbmesh(ob, dm, NULL, FALSE);
bm = em->bm;
- BM_mesh_normals_update(bm);
+ BM_mesh_normals_update(bm, FALSE);
BMO_push(bm, NULL);
if (bmd->lim_flags & BME_BEVEL_ANGLE) {
diff --git a/source/blender/modifiers/intern/MOD_edgesplit.c b/source/blender/modifiers/intern/MOD_edgesplit.c
index 14b54be8be1..1e275862b5c 100644
--- a/source/blender/modifiers/intern/MOD_edgesplit.c
+++ b/source/blender/modifiers/intern/MOD_edgesplit.c
@@ -69,7 +69,7 @@ static DerivedMesh *doEdgeSplit(DerivedMesh *dm, EdgeSplitModifierData *emd, Obj
em = DM_to_editbmesh(ob, dm, NULL, FALSE);
bm = em->bm;
- BM_mesh_normals_update(bm);
+ BM_mesh_normals_update(bm, FALSE);
BMO_push(bm, NULL);
if (emd->flags & MOD_EDGESPLIT_FROMANGLE) {