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:
Diffstat (limited to 'source/blender/editors/util/crazyspace.c')
-rw-r--r--source/blender/editors/util/crazyspace.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/editors/util/crazyspace.c b/source/blender/editors/util/crazyspace.c
index ac403e71627..1dd24db36ec 100644
--- a/source/blender/editors/util/crazyspace.c
+++ b/source/blender/editors/util/crazyspace.c
@@ -455,7 +455,7 @@ void crazyspace_build_sculpt(Scene *scene, Object *ob, float (**deformmats)[3][3
if(!modifier_isEnabled(scene, md, eModifierMode_Realtime)) continue;
if(mti->type==eModifierTypeType_OnlyDeform) {
- /* skip leading modifiers which have been alredy
+ /* skip leading modifiers which have been already
handled in sculpt_get_first_deform_matrices */
if(mti->deformMatrices && !deformed)
continue;
@@ -480,4 +480,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]);
+ }
}