Skip to content
Snippets Groups Projects
Commit 2a089d8e authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for error with mathutils changes

parent 3e28b15f
Branches
Tags
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment