Blender Git Commit Log
Git Commits -> Revision fa2f7c6
Revision fa2f7c6 by Campbell Barton (master) February 15, 2015, 03:02 (GMT) |
mathutils: Implement __hash__() functions - all mathutils types - only works on frozen data (so vectors can be used in sets/dict keys) - uses same method as CPython, (matches hashing a tuple) D1104 by @juicyfruit with own modifications |
Commit Details:
Full Hash: fa2f7c69acc55fd1fe3db0610ad319d08d77d79e
Parent Commit: a9d979c
Lines Changed: +122, -5
7 Modified Paths:
/source/blender/python/mathutils/mathutils.c (+38, -0) (Diff)
/source/blender/python/mathutils/mathutils.h (+7, -0) (Diff)
/source/blender/python/mathutils/mathutils_Color.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils_Euler.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils_Matrix.c (+29, -1) (Diff)
/source/blender/python/mathutils/mathutils_Quaternion.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils_Vector.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils.h (+7, -0) (Diff)
/source/blender/python/mathutils/mathutils_Color.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils_Euler.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils_Matrix.c (+29, -1) (Diff)
/source/blender/python/mathutils/mathutils_Quaternion.c (+12, -1) (Diff)
/source/blender/python/mathutils/mathutils_Vector.c (+12, -1) (Diff)