Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-07-19 13:33:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-19 13:33:27 +0400
commit1917e951ca4cb593399158f5b9222708dbb66f24 (patch)
tree31f427be737a8521c65c9716a66c159679999422 /source/blender/python/intern
parent8ced84eec9ae9fd311789935901f52d5073eb0fb (diff)
py rna arrays were assumed sizeof(char)*len, should be sizeof(int)*len, was causing end of array corruption errors when running operators that took bool array options - transform.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_rna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index e62dda03e09..d3f69e4db73 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -499,7 +499,7 @@ int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyObject *v
{
int *param_arr;
if(data) param_arr= (int*)data;
- else param_arr= MEM_mallocN(sizeof(char) * len, "pyrna bool array");
+ else param_arr= MEM_mallocN(sizeof(int) * len, "pyrna bool array");
/* collect the variables before assigning, incase one of them is incorrect */