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:
authorTon Roosendaal <ton@blender.org>2008-12-30 19:03:29 +0300
committerTon Roosendaal <ton@blender.org>2008-12-30 19:03:29 +0300
commit1402534ebc840c822662824b966ddb3e7e1b85f5 (patch)
tree8037fca38c52587d458ba500441fe93ef3f45298 /source/blender/editors/mesh/editmesh_loop.c
parent3fd28ca440743109d447df1d51e368d4b8e13e06 (diff)
2.5
EditMesh: further cleanup, made derivedmesh itterator functions work by gathering all related data in local ViewContext struct. (scene, editmesh, region, view3d, obedit). Also removed bad inclusion of view3d_intern.h in mesh module.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_loop.c')
-rw-r--r--source/blender/editors/mesh/editmesh_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_loop.c b/source/blender/editors/mesh/editmesh_loop.c
index 2cb7f48cc7c..a3e02cdd1c1 100644
--- a/source/blender/editors/mesh/editmesh_loop.c
+++ b/source/blender/editors/mesh/editmesh_loop.c
@@ -195,7 +195,7 @@ static void edgering_sel(EditMesh *em, EditEdge *startedge, int select, int prev
}
void CutEdgeloop(EditMesh *em, int numcuts)
{
- View3D *v3d= NULL; // XXX
+ ViewContext vc; // XXX
EditEdge *nearest=NULL, *eed;
float fac;
int keys = 0, holdnum=0, selectmode, dist;
@@ -219,7 +219,7 @@ void CutEdgeloop(EditMesh *em, int numcuts)
mvalo[0] = mval[0];
mvalo[1] = mval[1];
dist= 50;
- nearest = findnearestedge(v3d, em, &dist); // returns actual distance in dist
+ nearest = findnearestedge(&vc, &dist); // returns actual distance in dist
// scrarea_do_windraw(curarea); // after findnearestedge, backbuf!
sprintf(msg,"Number of Cuts: %d",numcuts);