diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-04 17:15:42 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-04 17:15:42 +0400 |
commit | d000103e80c076fb5bbdfbc87dc978b5e693564d (patch) | |
tree | 17540c107989f234e4b2028c1d273f4a72bbe0f5 /source/blender/editors/util | |
parent | 5d1fdb73ce1457b39df893887951fe6571580897 (diff) |
Own TODO item: sculpting on constructive modifiers
- Constructive modifiers are enabled by default in sculpt mode.
- There's option to disable all constructive modifiers in the "Options"
panel of toolbox in sculpt mode,
- Use one column in options panel to make strings easier to read
- No modifiers would still be applied on multires
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/crazyspace.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/util/crazyspace.c b/source/blender/editors/util/crazyspace.c index a2b32ec7cf8..9560924941d 100644 --- a/source/blender/editors/util/crazyspace.c +++ b/source/blender/editors/util/crazyspace.c @@ -425,4 +425,15 @@ void crazyspace_build_sculpt(Scene *scene, Object *ob, float (**deformmats)[3][3 MEM_freeN(origVerts); MEM_freeN(quats); } + + if(!*deformmats) { + int a, numVerts; + Mesh *me= (Mesh*)ob->data; + + *deformcos= mesh_getVertexCos(me, &numVerts); + *deformmats= MEM_callocN(sizeof(*(*deformmats))*numVerts, "defmats"); + + for(a=0; a<numVerts; a++) + unit_m3((*deformmats)[a]); + } } |