diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-02-03 03:51:25 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-02-03 03:51:25 +0300 |
commit | 601488154d8f68f8160aa80e4a686a341133cfd2 (patch) | |
tree | f912ef49ad43116e3e0b39696f2ec72cc99a5243 /source/blender/src/sculptmode.c | |
parent | 4069449918283bc668cfce42d4158869310a9579 (diff) |
== Sculpt ==
Fixed crasher in my previous commit; wasn't checking for NULL pointer.
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r-- | source/blender/src/sculptmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index 0dfa2f286c4..039b43efefb 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -1287,7 +1287,7 @@ void init_brushaction(BrushAction *a, short *mouse, short *pr_mouse) VecCopyf(&a->mesh_store[i].x, me->mvert[i].co); } - if(anchored) + if(anchored && a->layer_disps) memset(a->layer_disps, 0, sizeof(float) * me->totvert); if(anchored && !a->orig_norms) { |