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-15 20:56:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-15 20:56:27 +0400
commit29f96aa28788a4fc8864c2518e972c5c7d1b5dcc (patch)
tree75795a36193853317448262e8817e2461a6660ad /io_anim_camera.py
parentf15da84f3619b91098e60ab3ca369396cafd7196 (diff)
update for changes in blenders api.
Diffstat (limited to 'io_anim_camera.py')
-rw-r--r--io_anim_camera.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_anim_camera.py b/io_anim_camera.py
index 1f1b51ab..23e59fe8 100644
--- a/io_anim_camera.py
+++ b/io_anim_camera.py
@@ -39,7 +39,7 @@ import bpy
def writeCameras(context, filepath, frame_start, frame_end, only_selected=False):
data_attrs = ['lens', 'shift_x', 'shift_y', 'dof_distance', 'clip_start', 'clip_end', 'draw_size']
- obj_attrs = ['restrict_render']
+ obj_attrs = ['hide_render']
fw = open(filepath, 'w').write
@@ -48,7 +48,7 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False)
cameras = []
for obj in scene.objects:
- if only_selected and not obj.selected:
+ if only_selected and not obj.select:
continue
if obj.type != 'CAMERA':
continue