diff options
author | Jacques Lucke <jacques@blender.org> | 2021-01-11 16:58:29 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-01-11 16:59:05 +0300 |
commit | c0833989210714bc6974b77f40e59edc47d0cc68 (patch) | |
tree | b83189966517dcc093c42d6b0de7e5332d0c0d45 /source/blender/blenlib/BLI_mpq2.hh | |
parent | 7b6e55b933b96d5e2028be621cdbbd4e7268e800 (diff) |
BLI: fix math operation
That fixes a stupid mistake of mine that was copied a couple of times.
Diffstat (limited to 'source/blender/blenlib/BLI_mpq2.hh')
-rw-r--r-- | source/blender/blenlib/BLI_mpq2.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_mpq2.hh b/source/blender/blenlib/BLI_mpq2.hh index 40e227019ce..18bc8821d9c 100644 --- a/source/blender/blenlib/BLI_mpq2.hh +++ b/source/blender/blenlib/BLI_mpq2.hh @@ -156,7 +156,8 @@ struct mpq2 { static mpq_class distance_squared(const mpq2 &a, const mpq2 &b) { - return dot(a, b); + mpq2 diff = a - b; + return dot(diff, diff); } struct isect_result { |