From 69665bc7f06d727499596c87f1c08c1fc064efba Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 Mar 2019 12:35:48 +1100 Subject: RNA: move cursor into own struct Without this it's impractical to subscribe to any change to the cursor. Fixes T61969 by having gizmos update on any change to the cursor. --- release/scripts/startup/bl_operators/object_align.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts/startup/bl_operators/object_align.py') diff --git a/release/scripts/startup/bl_operators/object_align.py b/release/scripts/startup/bl_operators/object_align.py index cf6d796798b..b18f49e614c 100644 --- a/release/scripts/startup/bl_operators/object_align.py +++ b/release/scripts/startup/bl_operators/object_align.py @@ -130,7 +130,7 @@ def align_objects(context, depsgraph = context.depsgraph scene = context.scene - cursor = scene.cursor_location + cursor = scene.cursor.location # We are accessing runtime data such as evaluated bounding box, so we need to # be sure it is properly updated and valid (bounding box might be lost on operator -- cgit v1.2.3