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:
authorTon Roosendaal <ton@blender.org>2005-03-19 15:17:06 +0300
committerTon Roosendaal <ton@blender.org>2005-03-19 15:17:06 +0300
commita2ed880c9ff659f7dd488076da3104beac728d4d (patch)
tree47a6edca99c0bdf9e8387862141f9d11554003cd /source/blender/makesdna/DNA_view3d_types.h
parenta96ed881dc04d0a2ce6ab742f7682042e466b0a7 (diff)
Transform widgets; Scale and Rotate versions
To use; press the (temporal) icon in header. Switching widget types is by pressing G, R or S once, if current widget type is different it switches, otherwise it goes to normal Transform(). Widgets need a bit test for picking accuracy, correct drawing etc. The rotate widget has a center button for 'trackball' rotate. That latter can also be used for hotkey-based rotate. In current code, all widgets remain in "Global" space, also in editmode. Also widget updates while using normal transform has to be done. 2 Bugfixes: - rotate in PoseMode had error for 2d 'around' center - transform in postemode could crash, due to typo (& or |)
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 18e0fdf448d..19bee996a59 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -147,10 +147,10 @@ typedef struct View3D {
#define V3D_SHOW_Y 4
#define V3D_SHOW_Z 8
-/* View3d->twtype */
-#define V3D_MANIPULATOR_TRANSLATE 0
-#define V3D_MANIPULATOR_ROTATE 1
-#define V3D_MANIPULATOR_SCALE 2
+/* View3d->twtype (bits, we can combine them) */
+#define V3D_MANIPULATOR_TRANSLATE 1
+#define V3D_MANIPULATOR_ROTATE 2
+#define V3D_MANIPULATOR_SCALE 4
/* View3d->twmode */
#define V3D_MANIPULATOR_GLOBAL 0