eclipseo / rpms / blender

Forked from rpms/blender a month ago
Clone
Blob Blame History Raw
Index: blender-3.3.0/source/blender/python/mathutils/mathutils.c
================================================================
--- blender-3.3.0.original/source/blender/python/mathutils/mathutils.c	2022-07-28 14:26:24.000000000 -0700
+++ blender-3.3.0/source/blender/python/mathutils/mathutils.c	2022-09-10 09:30:39.263124741 -0700
@@ -76,7 +76,11 @@ Py_hash_t mathutils_array_hash(const flo
   x = 0x345678UL;
   i = 0;
   while (--len >= 0) {
+#if PY_VERSION_HEX >= 0x30a0000 /* Version: 3.10. */
     y = _Py_HashDouble(NULL, (double)(array[i++]));
+#else
+    y = _Py_HashDouble(NULL, (double)(array[i++]));
+#endif
     if (y == -1) {
       return -1;
     }