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>2018-11-26 05:49:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-26 06:02:09 +0300
commit74938480083a908a5d1fad448f1214b214727bf3 (patch)
treecbc5ddb594a7676e87a10fa9f2ddcbc6acef2316 /release/scripts/startup/bl_operators/object.py
parentb4e037fe14052619e23863ca08524c97181b3292 (diff)
3D View: remove 3D cursor
Use 3D cursor from the scene (was previously used for local-view).
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-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 aefa723b672..b59c6da7368 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -891,7 +891,7 @@ class LoadImageAsEmpty:
def execute(self, context):
scene = context.scene
space = context.space_data
- cursor = (space if space and space.type == 'VIEW_3D' else scene).cursor_location
+ cursor = scene.cursor_location
try:
image = bpy.data.images.load(self.filepath, check_existing=True)