diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-16 21:40:12 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-16 21:40:12 +0300 |
commit | b0995a2a84f84c665817de87500a1397916d3380 (patch) | |
tree | 93b2c7b5c059769474c6b47eeae9e70b71a230a7 /source/blender/src/transform_generics.c | |
parent | 49b3e0928fe16b68a847230f2278d4411fd7eef8 (diff) |
Mirror modifier with "do clipping" set crashed in transform when no
td->loc was set (like for crease).
Diffstat (limited to 'source/blender/src/transform_generics.c')
-rwxr-xr-x | source/blender/src/transform_generics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c index 35633453ad0..99b9c3d021a 100755 --- a/source/blender/src/transform_generics.c +++ b/source/blender/src/transform_generics.c @@ -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; |