GPencil: Fix typo error in previous commit

This commit is contained in:
Antonio Vazquez 2021-02-23 23:09:33 +01:00
parent 4d9d87d2bf
commit dde7d4417a
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ static bool gpencil_stroke_need_flip(Depsgraph *depsgraph,
float angle = angle_v2v2(v1, v2);
/* For very sharp angles, check distance between extremes. */
if (angle < DEG2RADF(15.0f)) {
float dist_start = len_squared_v2v2(v1a, v1a);
float dist_end = len_squared_v2v2(v1a, v1b);
float dist_start = len_squared_v2v2(v1a, v2a);
float dist_end = len_squared_v2v2(v1a, v2b);
if (dist_end < dist_start) {
return true;
}