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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_anim_camera.py')
-rw-r--r--io_anim_camera.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_anim_camera.py b/io_anim_camera.py
index 6e186b25..489cf856 100644
--- a/io_anim_camera.py
+++ b/io_anim_camera.py
@@ -82,7 +82,7 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False)
for obj, obj_data in cameras:
fw("obj = cameras['%s']\n" % obj.name)
- matrix = obj.matrix.copy()
+ matrix = obj.matrix_world.copy()
fw("obj.location = %s\n" % repr(tuple(matrix.translation_part())))
fw("obj.scale = %s\n" % repr(tuple(matrix.scale_part())))
fw("obj.rotation_euler = %s\n" % repr(tuple(matrix.to_euler())))