diff --git a/source/blender/blenlib/BLI_math_quaternion_types.hh b/source/blender/blenlib/BLI_math_quaternion_types.hh index 685303330ed..c5ace7fc196 100644 --- a/source/blender/blenlib/BLI_math_quaternion_types.hh +++ b/source/blender/blenlib/BLI_math_quaternion_types.hh @@ -162,6 +162,11 @@ template struct QuaternionBase { return (a.w == b.w) && (a.x == b.x) && (a.y == b.y) && (a.z == b.z); } + uint64_t hash() const + { + return VecBase(*this).hash(); + } + friend std::ostream &operator<<(std::ostream &stream, const QuaternionBase &rot) { return stream << "Quaternion" << static_cast>(rot);