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>2009-06-13 08:31:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-13 08:31:30 +0400
commit2183af57608d87305d861e5d77ac5bfa49328d22 (patch)
treeff939c6e8e4d8f4207dc3298be3f323f390fb56b /release
parent2371c35afc820cd00645ae4b3be59e7b576d09c9 (diff)
no need to use mathutils
Diffstat (limited to 'release')
-rw-r--r--release/scripts/import_obj.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/release/scripts/import_obj.py b/release/scripts/import_obj.py
index 9e5a4925f69..865e4b1bb95 100644
--- a/release/scripts/import_obj.py
+++ b/release/scripts/import_obj.py
@@ -40,7 +40,7 @@ Note, This loads mesh objects and materials only, nurbs and curves are not suppo
# ***** END GPL LICENCE BLOCK *****
# --------------------------------------------------------------------------
-from Blender import Mesh, Draw, Window, Texture, Material, sys, Mathutils
+from Blender import Mesh, Draw, Window, Texture, Material, sys
import bpy
import BPyMesh
import BPyImage
@@ -615,14 +615,6 @@ def create_nurbs(scn, context_nurbs, vert_loc, new_objects):
ob = scn.objects.new(cu)
new_objects.append(ob)
-
-def transform_tuples(verts_loc, matrix):
- vec = Mathutils.Vector(0.0,0.0,0.0)
- def rotvec(v):
- vec[:] = v
- return tuple(vec * matrix)
-
- verts_loc[:] = [rotvec(v) for v in verts_loc]
def strip_slash(line_split):
@@ -934,7 +926,7 @@ def load_obj(filepath,
time_sub= time_new
if not ROTATE_X90:
- transform_tuples(verts_loc, Mathutils.RotationMatrix(-90, 3, 'x'))
+ verts_loc[:] = [(v[0], v[2], -v[1]) for v in verts_loc]
# deselect all
scn = bpy.data.scenes.active