EditBone.align_orientation() uses Vector.normalize() incorrectly #31383

Closed
opened 2012-05-09 19:07:47 +02:00 by Brooks Boyd · 3 comments

%%%Passing an EditBone object as a parameter to the EditBone.align_orientation() function incorrectly tries to get the normalized vector of the passed bone. The failing line of code is:

vec = other.vector.normalize() * self.length

which gives the error

TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Because Vector.normalize() normalizes the vector itself, and returns None. I believe the proper function in this case is Vector.normalized() to return a normalized vector.

This is happening on OSX 10.6.8 with Blender 2.62%%%

%%%Passing an EditBone object as a parameter to the EditBone.align_orientation() function incorrectly tries to get the normalized vector of the passed bone. The failing line of code is: vec = other.vector.normalize() * self.length which gives the error TypeError: unsupported operand type(s) for *: 'NoneType' and 'float' Because Vector.normalize() normalizes the vector itself, and returns None. I believe the proper function in this case is Vector.normalized() to return a normalized vector. This is happening on OSX 10.6.8 with Blender 2.62%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%fixed r46479.%%%

%%%fixed r46479.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#31383
No description provided.