[#22114] Manipulator Transform Orientation not respected

Potential fix (the error would explain the gimbal case, not the normal case. Also, it doesn't explain why it worked from time to time on other platforms).
This commit is contained in:
Martin Poirier 2010-05-16 17:01:05 +00:00
parent ce6e6112eb
commit b65cc25be3
2 changed files with 2 additions and 1 deletions

@ -960,7 +960,7 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
{ {
t->current_orientation = RNA_enum_get(op->ptr, "constraint_orientation"); t->current_orientation = RNA_enum_get(op->ptr, "constraint_orientation");
if (t->current_orientation >= V3D_MANIP_CUSTOM + BIF_countTransformOrientation(C) - 1) if (t->current_orientation >= V3D_MANIP_CUSTOM + BIF_countTransformOrientation(C))
{ {
t->current_orientation = V3D_MANIP_GLOBAL; t->current_orientation = V3D_MANIP_GLOBAL;
} }

@ -517,6 +517,7 @@ void initTransformOrientation(bContext *C, TransInfo *t)
case V3D_MANIP_GIMBAL: case V3D_MANIP_GIMBAL:
unit_m3(t->spacemtx); unit_m3(t->spacemtx);
if (gimbal_axis(ob, t->spacemtx)) { if (gimbal_axis(ob, t->spacemtx)) {
strcpy(t->spacename, "gimbal");
break; break;
} }
/* no gimbal fallthrough to normal */ /* no gimbal fallthrough to normal */