Increase assert epsilon in versioning for D9551.

The epsilon was too optimistic. Snapping to hard-coded (0,-1,0) at
singularity should produce max delta 0.0005, but double it to be safe.
This only affects debug builds obviously.
This commit is contained in:
Alexander Gavrilov 2021-10-22 17:17:21 +03:00
parent 39f88480bb
commit 76ebc10794
1 changed files with 1 additions and 1 deletions

View File

@ -1197,7 +1197,7 @@ static void correct_bone_roll_value(const float head[3],
/* Recompute roll using legacy code to interpret the old value. */
legacy_vec_roll_to_mat3_normalized(vec, *r_roll, bone_mat);
mat3_to_vec_roll(bone_mat, vec2, r_roll);
BLI_assert(compare_v3v3(vec, vec2, FLT_EPSILON));
BLI_assert(compare_v3v3(vec, vec2, 0.001f));
}
}
}