From: <gr...@us...> - 2012-02-29 12:50:36
|
Revision: 37685 http://crystal.svn.sourceforge.net/crystal/?rev=37685&view=rev Author: groto Date: 2012-02-29 12:50:25 +0000 (Wed, 29 Feb 2012) Log Message: ----------- Fixed a bug with the scale of socket objects Modified Paths: -------------- CS/trunk/scripts/blender/io_scene_cs/io/object.py Modified: CS/trunk/scripts/blender/io_scene_cs/io/object.py =================================================================== --- CS/trunk/scripts/blender/io_scene_cs/io/object.py 2012-02-29 04:58:26 UTC (rev 37684) +++ CS/trunk/scripts/blender/io_scene_cs/io/object.py 2012-02-29 12:50:25 UTC (rev 37685) @@ -616,7 +616,11 @@ def GetScale(self): """ Get object scale """ - if self.parent and self.parent.type == 'ARMATURE': + if self.parent and self.parent_type == 'BONE': + pscale = self.parent.scale + oscale = self.scale + scale = Vector((pscale[0]*oscale[0], pscale[1]*oscale[1], pscale[2]*oscale[2])) + elif self.parent and self.parent.type == 'ARMATURE': scale = self.parent.scale else: scale = self.scale This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |