Skip to content

Commit

Permalink
fix for error with mathutils changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed Nov 8, 2011
1 parent 3e28b15 commit 2a089d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions io_anim_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2a089d8

Please sign in to comment.