From 2a089d8e5bdc5a97f7c93306ce4a439c561573e0 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Tue, 8 Nov 2011 19:36:40 +0000 Subject: [PATCH] fix for error with mathutils changes --- io_anim_camera.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io_anim_camera.py b/io_anim_camera.py index cf903de0f..d426baace 100644 --- a/io_anim_camera.py +++ b/io_anim_camera.py @@ -87,9 +87,9 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False) fw("obj = cameras['%s']\n" % obj.name) matrix = obj.matrix_world.copy() - fw("obj.location = %r\n" % matrix.to_translation()[:]) - fw("obj.scale = %r\n" % matrix.to_scale()[:]) - fw("obj.rotation_euler = %r\n" % matrix.to_euler()[:]) + fw("obj.location = %r, %r, %r\n" % matrix.to_translation()[:]) + fw("obj.scale = %r, %r, %r\n" % matrix.to_scale()[:]) + fw("obj.rotation_euler = %r, %r, %r\n" % matrix.to_euler()[:]) fw("obj.keyframe_insert('location')\n") fw("obj.keyframe_insert('scale')\n") -- GitLab