[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36211] trunk/blender/source/blender/ editors/armature/editarmature.c: fix for part of this report [#27006] Apply Scale at a B-Bone Skeleton causes rescale of B-Bones and offset of attached objects
Campbell Barton
ideasman42 at gmail.com
Mon Apr 18 12:40:06 CEST 2011
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 */
More information about the Bf-blender-cvs
mailing list