diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-02-02 07:38:40 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-02-02 07:38:40 +0300 |
commit | 35ee34ea6771432b1be9796596c4e0bbcc773b02 (patch) | |
tree | e9f49f484891223cc2cf1e95e1883bf4a04a656b /source/blender | |
parent | fdab7b08f171e7952f443498bb94eb006c45d90f (diff) |
== Sculpt ==
Fix bug with layer brush + anchored.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/sculptmode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index bd66ef9c2df..0dfa2f286c4 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -1287,6 +1287,9 @@ void init_brushaction(BrushAction *a, short *mouse, short *pr_mouse) VecCopyf(&a->mesh_store[i].x, me->mvert[i].co); } + if(anchored) + memset(a->layer_disps, 0, sizeof(float) * me->totvert); + if(anchored && !a->orig_norms) { a->orig_norms= MEM_mallocN(sizeof(short) * 3 * me->totvert, "Sculpt orig norm"); for(i = 0; i < me->totvert; ++i) { |