diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-10-28 23:30:33 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-10-28 23:30:33 +0300 |
commit | 3187e365d90f5c0e46d721370c0d381f83813c66 (patch) | |
tree | 754be9c6f41f10e671a77ea59cce820214c8e09c /source/blender/editors/transform/transform_constraints.c | |
parent | c2f9cfb40a740f926d78cbdb20f1f8b09cc7aadd (diff) |
Gimbal Transform orientations
Will use rotation gimbal axis when an object or bone set to Euler rotation mode is selected (global axis otherwise)
Use case: being able to do rotations that only affect one animation curve in the 3d view instead of just in the curve editor.
I'm committing this right now despite what follows because it's already useful as is.
Known bug: manipulator arrows can look slightly skewed (not really a big problem), but more importantly, rotation circles for the rotation manipulator are skewed and will not perfectly reflect the rotation axis (it will still use the correct one though). That will be fixed shortly.
To do: This orientation should act like Local, where each object/bone uses its own orientation and not just the one of the active object/bone.
Note: Saved files with custom orientations might end up with other orientations selected when being opened up. I don't think it's that useful to make a do_version for that, but I can if warranted.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index 1143203217b..f80084f7820 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -575,6 +575,10 @@ void setUserConstraint(TransInfo *t, short orientation, int mode, const char fte sprintf(text, ftext, "view"); setConstraint(t, t->spacemtx, mode, text); break; + case V3D_MANIP_GIMBAL: + sprintf(text, ftext, "gimbal"); + setConstraint(t, t->spacemtx, mode, text); + break; default: /* V3D_MANIP_CUSTOM */ sprintf(text, ftext, t->spacename); setConstraint(t, t->spacemtx, mode, text); |