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:
authorMartin Poirier <theeth@yahoo.com>2006-12-19 02:48:32 +0300
committerMartin Poirier <theeth@yahoo.com>2006-12-19 02:48:32 +0300
commit59b30d178a3cc1bd7921adcc68835fcbf3ec61da (patch)
tree72dab0010cbc827d28d8816da9ab9e301f5efc39 /source/blender/include/transform.h
parent3f557514badc56ff75278437850aca5276bb547b (diff)
=== Transform Snap ===
Work in Progress: this adds vertex snapping capabilities to translations. As before, use the menu or the hotkey (` during transform) to turn on snapping. Currently, snapping is restricted to translation and only snap to verts. Also, it will snap the nearest moving vert to the snapping vert. This also has a timeout period and refreshes the snapping point only every 0.25 seconds (assuming the timer is precise enough to do that) to mitigate the slowdown due to repeated calls to findnearestvert. Eventually, a faster method will have to be used. Also, this uncovered a bug in findnearestvert which can manifest itself as jumps and lags in snapping. People are looking into it. Still, with all those disclaimers, get the suggestions/critics pouring in.
Diffstat (limited to 'source/blender/include/transform.h')
-rwxr-xr-xsource/blender/include/transform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h
index a5a2bacc6e0..7f12f765bbf 100755
--- a/source/blender/include/transform.h
+++ b/source/blender/include/transform.h
@@ -62,8 +62,11 @@ typedef struct NumInput {
typedef struct TransSnap {
int status;
float snapPoint[3];
+ float snapTarget[3];
+ double last;
void (*applySnap)(struct TransInfo *, float *);
void (*calcSnap)(struct TransInfo *, float *);
+ void (*targetSnap)(struct TransInfo *);
} TransSnap;
typedef struct TransCon {