Mirror modifier with "do clipping" set crashed in transform when no

td->loc was set (like for crease).
This commit is contained in:
Ton Roosendaal
2005-11-16 18:40:12 +00:00
parent 49b3e0928f
commit b0995a2a84

View File

@@ -156,6 +156,8 @@ static void clipMirrorModifier(TransInfo *t, Object *ob)
for(i = 0 ; i < t->total; i++, td++) {
if (td->flag & TD_NOACTION)
break;
if (td->loc==NULL)
break;
if(axis & 1) {
if(fabs(td->iloc[0])<=tolerance[0] || td->loc[0]*td->iloc[0]<0.0f) td->loc[0]= 0.0f;