From 4749bd227723459097c246aa8a77c74545bc36ef Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Fri, 28 Aug 2020 11:43:56 -0400 Subject: Fix to previous commit to allow building without WITH_GMP. --- source/blender/blenlib/intern/math_vec.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenlib/intern/math_vec.cc') 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 poly) return n; } +#ifdef WITH_GMP mpq3 mpq3::cross_poly(Span 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 -- cgit v1.2.3