From 696b0366f5c46dcfcb50f53b4ca4f59c593b88fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 5 Feb 2011 07:08:34 +0000 Subject: update for changes in mathutuils. --- io_scene_x3d/export_x3d.py | 6 +++--- io_scene_x3d/import_x3d.py | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'io_scene_x3d') diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 822065b2..a3e37648 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -47,7 +47,7 @@ def round_color(col, cp): def matrix_direction(mtx): - return (mathutils.Vector((0.0, 0.0, -1.0)) * mtx.rotation_part()).normalize()[:] + return (mathutils.Vector((0.0, 0.0, -1.0)) * mtx.to_3x3()).normalize()[:] ########################################################## @@ -204,7 +204,7 @@ class x3d_class: dx, dy, dz = matrix_direction(mtx) - location = mtx.translation_part()[:] + location = mtx.to_translation()[:] radius = lamp.distance * math.cos(beamWidth) # radius = lamp.dist*math.cos(beamWidth) @@ -247,7 +247,7 @@ class x3d_class: amb_intensity = 0.0 intensity = min(lamp.energy / 1.75, 1.0) - location = mtx.translation_part()[:] + location = mtx.to_translation()[:] self.file.write("