[#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:
@@ -960,7 +960,7 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -517,6 +517,7 @@ void initTransformOrientation(bContext *C, TransInfo *t)
|
||||
case V3D_MANIP_GIMBAL:
|
||||
unit_m3(t->spacemtx);
|
||||
if (gimbal_axis(ob, t->spacemtx)) {
|
||||
strcpy(t->spacename, "gimbal");
|
||||
break;
|
||||
}
|
||||
/* no gimbal fallthrough to normal */
|
||||
|
||||
Reference in New Issue
Block a user