=== Mirror Tool ===
authorMartin Poirier <theeth@yahoo.com>
Fri, 25 Jan 2008 04:38:08 +0000 (04:38 +0000)
committerMartin Poirier <theeth@yahoo.com>
Fri, 25 Jan 2008 04:38:08 +0000 (04:38 +0000)
Fix call order mix up.

That's what I get for doing "cleanup" before a commit.

Tested as working ok with this.

source/blender/src/transform.c

index 498b546ba57adba314795eee874ab3ba1737bf0b..1855ad3d1477fd1ea22e11cff3eed9725aa0cbd0 100644 (file)
@@ -4055,7 +4055,6 @@ void initMirror(TransInfo *t)
        }
        
        t->transform = Mirror;
-       t->fac = 0.1f;
 }
 
 int Mirror(TransInfo *t, short mval[2]) 
@@ -4073,16 +4072,16 @@ int Mirror(TransInfo *t, short mval[2])
 
        /* if an axis has been selected */
        if (t->con.mode & CON_APPLY) {
+               size[0] = size[1] = size[2] = -1;
+       
+               SizeToMat3(size, mat);
+               
                if (t->con.applySize) {
                        t->con.applySize(t, NULL, mat);
                }
                
                sprintf(str, "Mirror%s", t->con.text);
        
-               size[0] = size[1] = size[2] = -1;
-       
-               SizeToMat3(size, mat);
-               
                for(i = 0, td=t->data; i < t->total; i++, td++) {
                        if (td->flag & TD_NOACTION)
                                break;