diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2020-08-28 18:43:56 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2020-08-28 18:43:56 +0300 |
commit | 4749bd227723459097c246aa8a77c74545bc36ef (patch) | |
tree | b3de9aea76341dd5edeb8603ff0446603f4a5523 /source/blender/blenlib/intern/math_vec.cc | |
parent | 9e09b5c418c0a436e3c84ccf38c065527988b0a0 (diff) |
Fix to previous commit to allow building without WITH_GMP.
Diffstat (limited to 'source/blender/blenlib/intern/math_vec.cc')
-rw-r--r-- | source/blender/blenlib/intern/math_vec.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_vec.cc b/source/blender/blenlib/intern/math_vec.cc index 865a1986214..54926f84eb9 100644 --- a/source/blender/blenlib/intern/math_vec.cc +++ b/source/blender/blenlib/intern/math_vec.cc @@ -146,6 +146,7 @@ double3 double3::cross_poly(Span<double3> poly) return n; } +#ifdef WITH_GMP mpq3 mpq3::cross_poly(Span<mpq3> poly) { /* Newell's Method. */ @@ -189,5 +190,6 @@ uint64_t mpq3::hash() const uint64_t hashz = hash_mpq_class(this->z); return hashx ^ (hashy * 33) ^ (hashz * 33 * 37); } +#endif } // namespace blender |