From 148ccc2f17d63748512dd5f04ceebda7c2284f82 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 11 Jul 2010 16:12:32 +0000 Subject: [PATCH] bugfix [#22800] Mathutil bug with vector example wasnt updated. --- source/blender/python/doc/examples/mathutils.Vector.py | 8 ++++---- source/blender/python/doc/examples/mathutils.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/blender/python/doc/examples/mathutils.Vector.py b/source/blender/python/doc/examples/mathutils.Vector.py index 143ad234416..fb00e8aead6 100644 --- a/source/blender/python/doc/examples/mathutils.Vector.py +++ b/source/blender/python/doc/examples/mathutils.Vector.py @@ -1,15 +1,15 @@ import mathutils # zero length vector -vec = mathutils.Vector(0, 0, 1) +vec = mathutils.Vector((0, 0, 1)) # unit length vector vec_a = vec.copy().normalize() -vec_b = mathutils.Vector(0, 1, 2) +vec_b = mathutils.Vector((0, 1, 2)) -vec2d = mathutils.Vector(1, 2) -vec3d = mathutils.Vector([1, 0, 0]) +vec2d = mathutils.Vector((1, 2)) +vec3d = mathutils.Vector((1, 0, 0)) vec4d = vec_a.copy().resize4D() # other mathutuls types diff --git a/source/blender/python/doc/examples/mathutils.py b/source/blender/python/doc/examples/mathutils.py index 6cd11a1baaa..4a5de5887c9 100644 --- a/source/blender/python/doc/examples/mathutils.py +++ b/source/blender/python/doc/examples/mathutils.py @@ -1,7 +1,7 @@ import mathutils from math import radians -vec = mathutils.Vector(1.0, 2.0, 3.0) +vec = mathutils.Vector((1.0, 2.0, 3.0)) mat_rot = mathutils.RotationMatrix(radians(90), 4, 'X') mat_trans = mathutils.TranslationMatrix(vec)