fix for [#34283] wasn't working in my tests (attached to original report),
made bone roll get compatible angle values with the original roll.
This commit is contained in:
@@ -809,6 +809,7 @@ static void recalcData_view3d(TransInfo *t)
|
||||
if (td->extra) {
|
||||
float vec[3], up_axis[3];
|
||||
float qrot[4];
|
||||
float roll;
|
||||
bool ztrans_hack = false;
|
||||
|
||||
ebo = td->extra;
|
||||
@@ -842,7 +843,8 @@ static void recalcData_view3d(TransInfo *t)
|
||||
ztrans_hack = compare_v3v3(tdelta, ZAXIS_REF, 0.1f);
|
||||
}
|
||||
|
||||
ebo->roll = ED_rollBoneToVector(ebo, up_axis, ztrans_hack);
|
||||
roll = ED_rollBoneToVector(ebo, up_axis, ztrans_hack);
|
||||
ebo->roll = angle_compat_rad(roll, ebo->roll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user