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>2008-01-21 01:43:48 +0300
committerMartin Poirier <theeth@yahoo.com>2008-01-21 01:43:48 +0300
commit3d7271f059d5cb5c6f2c7adfaec8d35858485da1 (patch)
treed2018f243ef4bb2dd2f651e574c60d02489a7072 /source/blender/include/transform.h
parent32c4bbbcc5d7a8048ec252eda49a408783f03bea (diff)
=== Transform Snap ===
Snapping Mode: Active With this mode, the active element (at this time, object or vertice) is used as snapping target. If there is no active element in the selection, it reverts back to median mode. Edit Mode snapping, other meshes no longer have to be selected to act as snapping point. Fix a potential bug with snapping point from other meshes.
Diffstat (limited to 'source/blender/include/transform.h')
-rw-r--r--source/blender/include/transform.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h
index e9e82612721..30b9bbf3f51 100644
--- a/source/blender/include/transform.h
+++ b/source/blender/include/transform.h
@@ -265,18 +265,19 @@ typedef struct TransInfo {
/* transdata->flag */
#define TD_SELECTED 1
-#define TD_NOACTION 2
-#define TD_USEQUAT 4
-#define TD_NOTCONNECTED 8
-#define TD_SINGLESIZE 16 /* used for scaling of MetaElem->rad */
+#define TD_ACTIVE (1 << 1)
+#define TD_NOACTION (1 << 2)
+#define TD_USEQUAT (1 << 3)
+#define TD_NOTCONNECTED (1 << 4)
+#define TD_SINGLESIZE (1 << 5) /* used for scaling of MetaElem->rad */
#ifdef WITH_VERSE
- #define TD_VERSE_OBJECT 32
- #define TD_VERSE_VERT 64
+ #define TD_VERSE_OBJECT (1 << 6)
+ #define TD_VERSE_VERT (1 << 7)
#endif
-#define TD_TIMEONLY 128
-#define TD_NOCENTER 256
-#define TD_NO_EXT 512 /* ext abused for particle key timing */
-#define TD_SKIP 1024 /* don't transform this data */
+#define TD_TIMEONLY (1 << 8)
+#define TD_NOCENTER (1 << 9)
+#define TD_NO_EXT (1 << 10) /* ext abused for particle key timing */
+#define TD_SKIP (1 << 11) /* don't transform this data */
/* transsnap->status */
#define SNAP_ON 1
@@ -291,6 +292,7 @@ typedef struct TransInfo {
#define SNAP_CLOSEST 0
#define SNAP_CENTER 1
#define SNAP_MEDIAN 2
+#define SNAP_ACTIVE 3
void checkFirstTime(void);