3D View: remove 3D cursor

Use 3D cursor from the scene (was previously used for local-view).
This commit is contained in:
Campbell Barton
2018-11-26 13:49:17 +11:00
parent b4e037fe14
commit 7493848008
48 changed files with 114 additions and 244 deletions

View File

@@ -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)