From 607777d9495d73cd5eb3d2fecbe67a310d285e91 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Sat, 29 Oct 2005 12:17:44 +0000 Subject: [PATCH] *silly whistling* See, in theory, I didn't make typos when coding. Explanation: iloc*loc will be negative when the sign changes between them, so we can snap if an element cross the limit. --- source/blender/src/transform_generics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c index 1f66eb29818..cd70da735ba 100755 --- a/source/blender/src/transform_generics.c +++ b/source/blender/src/transform_generics.c @@ -140,13 +140,13 @@ static void clipMirrorModifier(TransInfo *t, Object *ob) if (td->flag & TD_NOACTION) break; if(mmd->axis==0) { - if(td->loc[0]*td->loc[0]<0.0f) td->loc[0]= 0.0f; + if(td->loc[0]*td->iloc[0]<0.0f) td->loc[0]= 0.0f; } else if(mmd->axis==1) { - if(td->loc[1]*td->loc[1]<0.0f) td->loc[1]= 0.0f; + if(td->loc[1]*td->iloc[1]<0.0f) td->loc[1]= 0.0f; } else { - if(td->loc[2]*td->loc[2]<0.0f) td->loc[2]= 0.0f; + if(td->loc[2]*td->iloc[2]<0.0f) td->loc[2]= 0.0f; } } }