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-03-11 23:58:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-11 23:58:56 +0400
commitb330abc290622b32419ba084b8bc7e6a8ea9aaa2 (patch)
tree62c0590af336f1028fd05ffd33c28b7dec0f0c3c /source/blender/modifiers/intern/MOD_edgesplit.c
parent42b3463030b07ba3a87574c173e759e3bb15353b (diff)
remove Object member from BMesh struct - was only used for undo and BMEditMesh already stores an object pointer.
also fix for own mistake with mesh conversion refactor, shape key index was off by 1 when switching editmode.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_edgesplit.c')
-rw-r--r--source/blender/modifiers/intern/MOD_edgesplit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_edgesplit.c b/source/blender/modifiers/intern/MOD_edgesplit.c
index 481ab805c5a..9fb4821229c 100644
--- a/source/blender/modifiers/intern/MOD_edgesplit.c
+++ b/source/blender/modifiers/intern/MOD_edgesplit.c
@@ -57,7 +57,7 @@
#define EDGE_MARK 1
-static DerivedMesh *doEdgeSplit(DerivedMesh *dm, EdgeSplitModifierData *emd, Object *ob)
+static DerivedMesh *doEdgeSplit(DerivedMesh *dm, EdgeSplitModifierData *emd, Object *UNUSED(ob))
{
DerivedMesh *result;
BMesh *bm;
@@ -66,7 +66,7 @@ static DerivedMesh *doEdgeSplit(DerivedMesh *dm, EdgeSplitModifierData *emd, Obj
BMEdge *e;
float threshold = cos((emd->split_angle + 0.00001) * M_PI / 180.0);
- em = DM_to_editbmesh(ob, dm, NULL, FALSE);
+ em = DM_to_editbmesh(dm, NULL, FALSE);
bm = em->bm;
BM_mesh_normals_update(bm, FALSE);