3D View: remove 3D cursor
Use 3D cursor from the scene (was previously used for local-view).
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user