Fix T74625 GPencil: Airbrush doesn't paint anything

This commit is contained in:
Clément Foucault 2020-03-10 18:11:20 +01:00
parent 0f1f751785
commit fa09b900c2
Notes: blender-bot 2023-05-22 12:40:41 +02:00
Referenced by issue #74625, [Grease Pencil] Airbrush doesn't paint anything
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ void stroke_vertex()
/* Rotation: Encoded as Cos + Sin sign. */
float uv_rot = decode_uvrot(uvrot1);
float rot_sin = sqrt(1.0 - uv_rot * uv_rot) * sign(uv_rot);
float rot_sin = sqrt(max(0.0, 1.0 - uv_rot * uv_rot)) * sign(uv_rot);
float rot_cos = abs(uv_rot);
x_axis = mat2(rot_cos, -rot_sin, rot_sin, rot_cos) * x_axis;