diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-10-22 17:17:21 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-10-22 17:17:21 +0300 |
commit | 76ebc10794a4bb66a1b94339fd8873dc23f1247c (patch) | |
tree | 6e7e2cb0923eb23b0050e23d265bd69bb5e77a3c /source/blender/blenloader | |
parent | 39f88480bb1fa0db7fda8bacb3c7d5a0b1cf2171 (diff) |
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index d5064f411c2..7d93439a44d 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -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)); } } } |