Page MenuHome

Vector.rotate() does not return value as documented
Closed, ResolvedPublic

Description

--- Operating System, Graphics card ---

win 7 professional 64 bit

--- Blender version with error, and version that worked ---

1.68a official release win 7 - 64bit

--- Short description of error ---

The docs state:

Vector
...
rotate(other)
Return vector by a rotation value.

it doesn't however. Keeping in line with the naming conventions I think it is indeed correct not to return a value (so a doc error, not a bug) but in that case it would be *very* convenient to have a rotated() function as well (in line with many other member functions)

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---

>>> print(Vector((1, 0 , 0)).rotate(Euler((0, 0, 1))))
None


Note that the vector itself is correctly rotated, it just doesn't return the value. Same behaviour with a Quaternion as argument.

Event Timeline

Good find, checked all others are documented correctly,
fixed 59318.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Aug 20 2013, 10:42 AM