[Bf-python] Incorrect checking for zero length vector

Campbell Barton cbarton at metavr.com
Fri Oct 7 01:57:09 CEST 2005


Found that AngleBetweenVecs raises an error when checking for a zero 
length Vector

# Heres my test from the interactive console.
print Mathutils.AngleBetweenVecs(Mathutils.Vector(10.0, 0 , 0), 
Mathutils.Vector(0,1,0))
exceptions.AttributeError:  Mathutils.AngleBetweenVecs(): zero-length 
vectors not acceptable

- Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241



More information about the Bf-python mailing list