correct example [#35850] documentation error for mathutils.Vector
authorCampbell Barton <ideasman42@gmail.com>
Sun, 23 Jun 2013 19:04:12 +0000 (19:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 23 Jun 2013 19:04:12 +0000 (19:04 +0000)
doc/python_api/examples/mathutils.Vector.py

index bf1fc70353f52978b027243e79544c556118fd2e..14b8829c3b5a94e2b8c45d37ecf8273a5f6458f3 100644 (file)
@@ -4,7 +4,7 @@ import mathutils
 vec = mathutils.Vector((0.0, 0.0, 1.0))
 
 # unit length vector
-vec_a = vec.copy().normalize()
+vec_a = vec.normalized()
 
 vec_b = mathutils.Vector((0.0, 1.0, 2.0))