From a2ed880c9ff659f7dd488076da3104beac728d4d Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 19 Mar 2005 12:17:06 +0000 Subject: 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 |) --- source/blender/makesdna/DNA_view3d_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/makesdna/DNA_view3d_types.h') 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 -- cgit v1.2.3