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:
authorNicholas Bishop <nicholasbishop@gmail.com>2006-12-28 10:33:39 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-12-28 10:33:39 +0300
commitf3948a5575280858b1f9b2cb95bca5837593afc6 (patch)
treedfebf7b99cd965b6bc752a5b8b3d656882a108b2 /source/blender/src/sculptmode.c
parent57b8310e9d181ea33312c3a0188a59772da57351 (diff)
Fixed bug #5533, was allocating memory by totvert rather than totface
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r--source/blender/src/sculptmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c
index 0b1b4253ecb..1fa910f5844 100644
--- a/source/blender/src/sculptmode.c
+++ b/source/blender/src/sculptmode.c
@@ -587,9 +587,9 @@ void calc_vertex_users()
sculptmode_free_vertexusers(ss);
/* Allocate an array of ListBases, one per vertex */
- ss->vertex_users= (ListBase*)MEM_callocN(sizeof(ListBase) * me->totvert, "vertex_users");
+ ss->vertex_users= MEM_callocN(sizeof(ListBase) * me->totvert, "vertex_users");
ss->vertex_users_size= me->totvert;
- ss->vertex_users_mem= MEM_mallocN(sizeof(IndexNode)*me->totvert*4, "vertex_users_mem");
+ ss->vertex_users_mem= MEM_callocN(sizeof(IndexNode)*me->totface*4, "vertex_users_mem");
node= ss->vertex_users_mem;
/* Find the users */