Bugfix for #1717 http://projects.blender.org/tracker/index.php?func=detail&aid=1717...
authorMartin Poirier <theeth@yahoo.com>
Sun, 31 Oct 2004 21:45:00 +0000 (21:45 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 31 Oct 2004 21:45:00 +0000 (21:45 +0000)
Scaling with PET with numerical input used a three axis input while it only gave access to one.
Made it use and give access to only one as it should.

source/blender/src/editobject.c

index 8a84e718176b97f320646e8d36972049b4b965bb..ac09483f0791bd33a88c78f8cb0591a3c30dfed2 100644 (file)
@@ -5733,10 +5733,20 @@ void transform(int mode)
                                }
                                else size[0]=size[1]=size[2]= (sqrt( (float)((yc-mval[1])*(yc-mval[1])+(mval[0]-xc)*(mval[0]-xc)) ))/sizefac;
 
-                               if (typemode){
-                                       if (numchange[0]) size[0] = addvec[0]; else size[0] = 1;
-                                       if (numchange[1]) size[1] = addvec[1]; else size[1] = 1;
-                                       if (numchange[2]) size[2] = addvec[2]; else size[2] = 1;
+                               if (mode=='s') {
+                                       if (typemode){
+                                               if (numchange[0]) size[0] = addvec[0]; else size[0] = 1;
+                                               if (numchange[1]) size[1] = addvec[1]; else size[1] = 1;
+                                               if (numchange[2]) size[2] = addvec[2]; else size[2] = 1;
+                                       }
+                               }
+                               else {
+                                       if (typemode){
+                                               if (numchange[0])
+                                                       size[0] = size[1] = size[2] = addvec[0];
+                                               else
+                                                       size[0] = size[1] = size[2] = 1;
+                                       }
                                }
 
                                if(axismode && mode=='s') {