[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46479] trunk/blender/release/scripts/ modules/bpy_types.py: fix [#31383] EditBone.align_orientation() uses Vector .normalize() incorrectly
Campbell Barton
ideasman42 at gmail.com
Wed May 9 21:05:30 CEST 2012
Revision: 46479
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46479
Author: campbellbarton
Date: 2012-05-09 19:05:29 +0000 (Wed, 09 May 2012)
Log Message:
-----------
fix [#31383] EditBone.align_orientation() uses Vector.normalize() incorrectly
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bpy_types.py
Modified: trunk/blender/release/scripts/modules/bpy_types.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_types.py 2012-05-09 17:14:16 UTC (rev 46478)
+++ trunk/blender/release/scripts/modules/bpy_types.py 2012-05-09 19:05:29 UTC (rev 46479)
@@ -304,7 +304,7 @@
Align this bone to another by moving its tail and settings its roll
the length of the other bone is not used.
"""
- vec = other.vector.normalize() * self.length
+ vec = other.vector.normalized() * self.length
self.tail = self.head + vec
self.roll = other.roll
More information about the Bf-blender-cvs
mailing list