diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-03 21:39:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-03 21:39:45 +0400 |
commit | f95f6ed04f447afe4ba0bab6ad9a54c5b0dd699c (patch) | |
tree | ce05db8d58b408a09ee8332bb4ed9b9781d93467 /io_anim_camera.py | |
parent | d79a2dc29ca7d42b446086214b7b853f6837dd71 (diff) |
update for changes in blender
Diffstat (limited to 'io_anim_camera.py')
-rw-r--r-- | io_anim_camera.py | 2 |
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()))) |