Revert "Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis."
This reverts commit fe0ca82b23.
This is a design issue, needs more thinking, for now just revert back to old behavior.
This commit is contained in:
@@ -4005,8 +4005,8 @@ static int vieworbit_exec(bContext *C, wmOperator *op)
|
|||||||
angle = -angle;
|
angle = -angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* View Y-axis */
|
/* z-axis */
|
||||||
axis_angle_to_quat(quat_mul, rv3d->viewinv[1], angle);
|
axis_angle_to_quat_single(quat_mul, 'Z', angle);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
@@ -4014,7 +4014,7 @@ static int vieworbit_exec(bContext *C, wmOperator *op)
|
|||||||
angle = -angle;
|
angle = -angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* View X-axis */
|
/* horizontal axis */
|
||||||
axis_angle_to_quat(quat_mul, rv3d->viewinv[0], angle);
|
axis_angle_to_quat(quat_mul, rv3d->viewinv[0], angle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user