Fix #140072: Overlay: UV Stretch ANGLE Overlay always shows green in 4.5
Was caused by the angle being scaled for USHORT storage.
This commit is contained in:
@@ -62,7 +62,7 @@ static void edituv_get_edituv_stretch_angle(float auv[2][2],
|
||||
r_stretch->uv_angles[0] = v2_to_short_angle(auv[0]);
|
||||
r_stretch->uv_angles[1] = v2_to_short_angle(auv[1]);
|
||||
/* Compute 3D angle here. */
|
||||
r_stretch->angle = angle_normalized_v3v3(av[0], av[1]) * float(M_1_PI) * SHRT_MAX;
|
||||
r_stretch->angle = angle_normalized_v3v3(av[0], av[1]) * float(M_1_PI);
|
||||
|
||||
#if 0 /* here for reference, this is done in shader now. */
|
||||
float uvang = angle_normalized_v2v2(auv0, auv1);
|
||||
|
||||
Reference in New Issue
Block a user