From 0a8e52c548c887e1ed8668c4db4b5b0aacf0ec05 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Apr 2021 20:23:08 +0300 Subject: [PATCH] Fix multiplication operators in camera exporter --- blender/io_mspgl/export_camera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blender/io_mspgl/export_camera.py b/blender/io_mspgl/export_camera.py index 02fce103..984ec0da 100644 --- a/blender/io_mspgl/export_camera.py +++ b/blender/io_mspgl/export_camera.py @@ -9,9 +9,9 @@ class CameraExporter: from .datafile import Resource, Statement resource = Resource(obj.name+".camera", "camera") - position = obj.matrix_world*mathutils.Vector((0, 0, 0)) + position = obj.matrix_world@mathutils.Vector((0, 0, 0)) resource.statements.append(Statement("position", position[0], position[1], position[2])) - look_dir = obj.matrix_world*mathutils.Vector((0, 0, -1, 0)) + look_dir = obj.matrix_world@mathutils.Vector((0, 0, -1, 0)) resource.statements.append(Statement("look_direction", look_dir[0], look_dir[1], look_dir[2])) resource.statements.append(Statement("up_direction", 0.0, 0.0, 1.0)) resource.statements.append(Statement("field_of_view", obj.data.angle_y*180/math.pi)) -- 2.45.2