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:
authorShaul Kedem <shaul_kedem@yahoo.com>2009-02-15 00:31:34 +0300
committerShaul Kedem <shaul_kedem@yahoo.com>2009-02-15 00:31:34 +0300
commita0fada6f184da274ad03c5c999270913f4a6d592 (patch)
treed5c3b619b0e9e869881daaeb4018d54edbc27f2b /source/blender/editors/mesh/editmesh_loop.c
parentaba3c36e33cca600a98588d1a9f559922d1aaaed (diff)
added error reporting to edit mesh
Diffstat (limited to 'source/blender/editors/mesh/editmesh_loop.c')
-rw-r--r--source/blender/editors/mesh/editmesh_loop.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_loop.c b/source/blender/editors/mesh/editmesh_loop.c
index d93ceaf07b8..2860c915ee4 100644
--- a/source/blender/editors/mesh/editmesh_loop.c
+++ b/source/blender/editors/mesh/editmesh_loop.c
@@ -46,6 +46,7 @@ editmesh_loop: tools with own drawing subloops, select, knife, subdiv
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
+#include "DNA_windowmanager_types.h"
#include "BLI_blenlib.h"
#include "BLI_arithb.h"
@@ -198,7 +199,7 @@ static void edgering_sel(EditMesh *em, EditEdge *startedge, int select, int prev
}
}
}
-void CutEdgeloop(Object *obedit, EditMesh *em, int numcuts)
+void CutEdgeloop(Object *obedit, wmOperator *op, EditMesh *em, int numcuts)
{
ViewContext vc; // XXX
EditEdge *nearest=NULL, *eed;
@@ -375,9 +376,9 @@ void CutEdgeloop(Object *obedit, EditMesh *em, int numcuts)
/* if this was a single cut, enter edgeslide mode */
if(numcuts == 1 && hasHidden == 0){
if(cuthalf)
- EdgeSlide(em, 1,0.0);
+ EdgeSlide(em, op, 1,0.0);
else {
- if(EdgeSlide(em, 0,0.0) == -1){
+ if(EdgeSlide(em, op, 0,0.0) == -1){
BIF_undo();
}
}
@@ -476,7 +477,7 @@ static float seg_intersect(EditEdge *e, CutCurve *c, int len, char mode, struct
float threshold;
int i;
- //threshold = 0.000001; /*tolerance for vertex intersection*/
+ threshold = 0.000001; /*tolerance for vertex intersection*/
// XXX threshold = scene->toolsettings->select_thresh / 100;
/* Get screen coords of verts */