diff options
author | NBurn <7nburn@gmail.com> | 2019-01-25 06:59:16 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-25 06:59:16 +0300 |
commit | c686df25d98bc6a08ad02b9f4f9cff6b4aee4805 (patch) | |
tree | 2ddb8dd6ee0fc2bd546bb95691c07b906aeab1cf /space_view3d_stored_views/operators.py | |
parent | a6189ebcbe0fcee59f72147fcc160f7b47234354 (diff) |
addons: object select_set syntax update
Diffstat (limited to 'space_view3d_stored_views/operators.py')
-rw-r--r-- | space_view3d_stored_views/operators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/space_view3d_stored_views/operators.py b/space_view3d_stored_views/operators.py index 82cfecda..5d8a4726 100644 --- a/space_view3d_stored_views/operators.py +++ b/space_view3d_stored_views/operators.py @@ -103,7 +103,7 @@ class SetSceneCamera(Operator): c.hide = (c != chosen_camera) scene.camera = chosen_camera bpy.ops.object.select_all(action='DESELECT') - chosen_camera.select = True + chosen_camera.select_set(True) return {'FINISHED'} def invoke(self, context, event): @@ -122,7 +122,7 @@ class PreviewSceneCamera(Operator): chosen_camera = context.active_object bpy.ops.view3d.object_as_camera() bpy.ops.object.select_all(action="DESELECT") - chosen_camera.select = True + chosen_camera.select_set(True) return {'FINISHED'} |