Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-05-18 12:59:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-05-18 12:59:20 +0300
commit1f9eb7e2c66bf77e13617d7f64b641ff3497ac72 (patch)
treea1a9cc4c568927ba07f41b52fbc89f3810f6e109 /release
parent97f1e4782a6fbc350f23a7f5c8520ffdf391f26c (diff)
parentaa06be9148a3a75cf117454a8009d90bdc4541d9 (diff)
Merge branch 'blender-v2.93-release'
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 5a388047ddd..d61bed71cab 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -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