Fix for transform orientation fix, probably forgot to commit this?
This commit is contained in:
@@ -1500,7 +1500,6 @@ static EnumPropertyItem prop_view_items[] = {
|
||||
|
||||
|
||||
/* would like to make this a generic function - outside of transform */
|
||||
extern void getTransformOrientationMatrix(const bContext *C, float twmat[][4], int activeOnly);
|
||||
|
||||
static void axis_set_view(bContext *C, float q1, float q2, float q3, float q4, short view, int perspo, int align_active)
|
||||
{
|
||||
@@ -1520,12 +1519,12 @@ static void axis_set_view(bContext *C, float q1, float q2, float q3, float q4, s
|
||||
}
|
||||
else {
|
||||
float obact_quat[4];
|
||||
float twmat[4][4];
|
||||
float twmat[3][3];
|
||||
|
||||
/* same as transform manipulator when normal is set */
|
||||
getTransformOrientationMatrix(C, twmat, TRUE);
|
||||
ED_getTransformOrientationMatrix(C, twmat, TRUE);
|
||||
|
||||
Mat4ToQuat(twmat, obact_quat);
|
||||
Mat3ToQuat(twmat, obact_quat);
|
||||
QuatInv(obact_quat);
|
||||
QuatMul(new_quat, new_quat, obact_quat);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user