== Sculpt ==
authorNicholas Bishop <nicholasbishop@gmail.com>
Fri, 22 Feb 2008 03:29:17 +0000 (03:29 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Fri, 22 Feb 2008 03:29:17 +0000 (03:29 +0000)
Fixed bug #8243, sculpt mode crash

Increased amount of memory allocated for doing smooth stroke. Should ensure there's enough room to store result of subdividing the stroke.

source/blender/src/sculptmode-stroke.c

index 69c20eeeddf2a641eefd3192b9c1fd915d0d38ff..455112343e907b1d29593b92c09189949bd32d22 100644 (file)
@@ -63,7 +63,7 @@ void sculpt_stroke_new(const int max)
        SculptSession *ss = sculpt_session();
 
        ss->stroke = MEM_callocN(sizeof(SculptStroke), "SculptStroke");
-       ss->stroke->loc = MEM_callocN(sizeof(short) * 2 * max, "SculptStroke.loc");
+       ss->stroke->loc = MEM_callocN(sizeof(short) * 4 * max, "SculptStroke.loc");
        ss->stroke->max = max;
        ss->stroke->index = -1;
 }