diff options
author | Ton Roosendaal <ton@blender.org> | 2005-03-19 15:17:06 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-03-19 15:17:06 +0300 |
commit | a2ed880c9ff659f7dd488076da3104beac728d4d (patch) | |
tree | 47a6edca99c0bdf9e8387862141f9d11554003cd /source/blender/makesdna/DNA_view3d_types.h | |
parent | a96ed881dc04d0a2ce6ab742f7682042e466b0a7 (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.h | 8 |
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 |