Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-07-11 20:12:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-11 20:12:32 +0400
commit148ccc2f17d63748512dd5f04ceebda7c2284f82 (patch)
tree49b4cfa59dd20d08b2bea07c6884b3929cdbb019 /source/blender/python
parentffcec4024bf3e408e2a8f581846954f9b4ed3f86 (diff)
bugfix [#22800] Mathutil bug with vector
example wasnt updated.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/doc/examples/mathutils.Vector.py8
-rw-r--r--source/blender/python/doc/examples/mathutils.py2
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)