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:
authorJohnny Matthews <johnny.matthews@gmail.com>2004-07-15 21:42:04 +0400
committerJohnny Matthews <johnny.matthews@gmail.com>2004-07-15 21:42:04 +0400
commit700d9c5559080613200a24d7791545df159c2daf (patch)
tree504458e265883d48e224ade7a069e81c80a36d3b /source/blender/makesdna/DNA_view3d_types.h
parent665a2f8fdd9446d80cb9c82c5624f5b6f7883680 (diff)
This adds two modes to the 'around' drop down in 3d header
3d Cursor, only Ob Centers Median Point, only Ob Centers They prevent rotation/scaling from effecting the scale/rotation of the objects and just effects their position. This is handy for aligning objects if you constrain to an axis and scale, as well as other neato things :) Intrr came up with the code and I hacked it into the GUI
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 9a0b4180de0..1f3cadbb961 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -123,10 +123,13 @@ typedef struct View3D {
#define V3D_ALIGN 1024
/* View3D->around */
-#define V3D_CENTRE 0
-#define V3D_CENTROID 3
-#define V3D_CURSOR 1
-#define V3D_LOCAL 2
+#define V3D_CENTRE 0
+#define V3D_CENTROID 3
+#define V3D_CENTROID_LOC 4
+#define V3D_CURSOR 1
+#define V3D_CURSOR_LOC 5
+#define V3D_LOCAL 2
+
/* View3d->persp */
#define V3D_PERSP_ORTHO 0