Skip to content

Commit

Permalink
Fix T86743: io_anim_camera addon needs updating
Browse files Browse the repository at this point in the history
Update path for the DOF distance, allow properties to be RNA paths.
  • Loading branch information
ideasman42 committed Mar 8, 2022
1 parent fbb5111 commit 080d74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io_anim_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def write_cameras(context, filepath, frame_start, frame_end, only_selected=False
'lens',
'shift_x',
'shift_y',
'dof_distance',
'dof.focus_distance',
'clip_start',
'clip_end',
'display_size',
Expand Down Expand Up @@ -60,7 +60,7 @@ def write_cameras(context, filepath, frame_start, frame_end, only_selected=False
for obj, obj_data in cameras:
fw("data = bpy.data.cameras.new(%r)\n" % obj.name)
for attr in data_attrs:
fw("data.%s = %s\n" % (attr, repr(getattr(obj_data, attr))))
fw("data.%s = %s\n" % (attr, repr(obj_data.path_resolve(attr))))

fw("obj = bpy.data.objects.new(%r, data)\n" % obj.name)

Expand Down

0 comments on commit 080d74f

Please sign in to comment.