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>2007-09-26 10:46:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-26 10:46:08 +0400
commitc2331e06cbc6707967f2786a89c9a5d1e065a6c5 (patch)
tree6c8587f842069427b72c7f676c5e7ae5f1f75edd /source/blender/src/transform_snap.c
parentcac6bb259e589999fad0c7471ddc3bb4575bc342 (diff)
re-arranged buttons from matts suggestions. removed some unused vars and added some constants to replaced magick numbers for draw types.
Diffstat (limited to 'source/blender/src/transform_snap.c')
-rw-r--r--source/blender/src/transform_snap.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/source/blender/src/transform_snap.c b/source/blender/src/transform_snap.c
index 3b632e8c467..d62d49c2de8 100644
--- a/source/blender/src/transform_snap.c
+++ b/source/blender/src/transform_snap.c
@@ -400,17 +400,10 @@ void CalcSnapGeometry(TransInfo *t, float *vec)
}
}
else if (t->spacetype == SPACE_IMAGE)
- {
-
+ { /* same as above but for UV's */
MTFace *nearesttf=NULL;
- unsigned int face_corner;
+ int face_corner;
- float vec[3];
- int found = 0;
- int dist = 40; // Use a user defined value here
-
- // use findnearestverts in vert mode, others in other modes
- //nearest = findnearestvert(&dist, SELECT, 1);
find_nearest_uv(&nearesttf, NULL, NULL, &face_corner);
if (nearesttf != NULL)
@@ -424,8 +417,6 @@ void CalcSnapGeometry(TransInfo *t, float *vec)
{
t->tsnap.status &= ~POINT_INIT;
}
-
-
}