[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45505] trunk/blender/source/blender/ python/mathutils/mathutils.c: fix for too small MATHUTILS_TOT_CB when the game engine runs.
Campbell Barton
ideasman42 at gmail.com
Tue Apr 10 14:35:16 CEST 2012
Revision: 45505
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45505
Author: campbellbarton
Date: 2012-04-10 12:35:15 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
fix for too small MATHUTILS_TOT_CB when the game engine runs.
Modified Paths:
--------------
trunk/blender/source/blender/python/mathutils/mathutils.c
Modified: trunk/blender/source/blender/python/mathutils/mathutils.c
===================================================================
--- trunk/blender/source/blender/python/mathutils/mathutils.c 2012-04-10 11:36:19 UTC (rev 45504)
+++ trunk/blender/source/blender/python/mathutils/mathutils.c 2012-04-10 12:35:15 UTC (rev 45505)
@@ -292,7 +292,7 @@
/* Mathutils Callbacks */
/* for mathutils internal use only, eventually should re-alloc but to start with we only have a few users */
-#define MATHUTILS_TOT_CB 8
+#define MATHUTILS_TOT_CB 10
static Mathutils_Callback *mathutils_callbacks[MATHUTILS_TOT_CB] = {NULL};
unsigned char Mathutils_RegisterCallback(Mathutils_Callback *cb)
@@ -305,7 +305,7 @@
return i;
}
- BLI_assert(i < MATHUTILS_TOT_CB);
+ BLI_assert(i + 1 < MATHUTILS_TOT_CB);
mathutils_callbacks[i] = cb;
return i;
More information about the Bf-blender-cvs
mailing list