Revision: 36211
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36211
Author:   campbellbarton
Date:     2011-04-18 10:40:06 +0000 (Mon, 18 Apr 2011)
Log Message:
-----------
fix for part of this report [#27006] Apply Scale at a B-Bone Skeleton causes 
rescale of B-Bones and offset of attached objects

bbones now get scaled too, but the attached objects still get offset.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/editarmature.c

Modified: trunk/blender/source/blender/editors/armature/editarmature.c
===================================================================
--- trunk/blender/source/blender/editors/armature/editarmature.c        
2011-04-18 10:18:35 UTC (rev 36210)
+++ trunk/blender/source/blender/editors/armature/editarmature.c        
2011-04-18 10:40:06 UTC (rev 36211)
@@ -504,6 +504,10 @@
                ebone->rad_head *= scale;
                ebone->rad_tail *= scale;
                ebone->dist             *= scale;
+
+               /* we could be smarter and scale by the matrix along the x & z 
axis */
+               ebone->xwidth   *= scale;
+               ebone->zwidth   *= scale;
        }
        
        /* Turn the list into an armature */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to