Merge branch 'blender-v2.93-release'

This commit is contained in:
Campbell Barton 2021-05-18 19:59:20 +10:00
commit 1f9eb7e2c6
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class SelectCamera(Operator):
scene = context.scene
view_layer = context.view_layer
view = context.space_data
if view.type == 'VIEW_3D' and view.use_local_camera:
if view and view.type == 'VIEW_3D' and view.use_local_camera:
camera = view.camera
else:
camera = scene.camera