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:
authorCampbell Barton <ideasman42@gmail.com>2010-07-03 21:39:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-03 21:39:45 +0400
commitf95f6ed04f447afe4ba0bab6ad9a54c5b0dd699c (patch)
treece05db8d58b408a09ee8332bb4ed9b9781d93467 /io_anim_camera.py
parentd79a2dc29ca7d42b446086214b7b853f6837dd71 (diff)
update for changes in blender
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())))