Disabled CrazySpace when 'proportional edit' is on... I discovered both use

the eve->vn pointer to store temporal data. Need a better solution, do it
later. This just prevents crashing!
This commit is contained in:
Ton Roosendaal 2005-10-26 10:49:19 +00:00
parent c648e790be
commit 5d291535c6

@ -1253,12 +1253,14 @@ static void createTransEditVerts(TransInfo *t)
if(propmode) editmesh_set_connectivity_distance(t->total, vectors, nears); if(propmode) editmesh_set_connectivity_distance(t->total, vectors, nears);
/* detect CrazySpace [tm] */ /* detect CrazySpace [tm] */
if(modifiers_getCageIndex(G.obedit, NULL)>=0) { if(propmode==0) {
if(modifiers_isDeformed(G.obedit)) { if(modifiers_getCageIndex(G.obedit, NULL)>=0) {
mappedcos= get_mapped_editverts(); if(modifiers_isDeformed(G.obedit)) {
/* add one more quaternion, because of crazy_quat_blend */ mappedcos= get_mapped_editverts();
quats= MEM_mallocN( (t->total+1)*sizeof(float)*4, "crazy quats"); /* add one more quaternion, because of crazy_quat_blend */
set_crazyspace_quats(mappedcos, quats); quats= MEM_mallocN( (t->total+1)*sizeof(float)*4, "crazy quats");
set_crazyspace_quats(mappedcos, quats);
}
} }
} }