diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 04:35:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 04:41:40 +0300 |
commit | 69665bc7f06d727499596c87f1c08c1fc064efba (patch) | |
tree | 7c22f9d74760275552e0b3d8610469c9a4c9db31 /release/scripts/startup/bl_operators/object.py | |
parent | 795effcbc815ae8c54bf59d31f3315a46e576c86 (diff) |
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.
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-rw-r--r-- | release/scripts/startup/bl_operators/object.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py index 42db2ca337d..bef3fef952a 100644 --- a/release/scripts/startup/bl_operators/object.py +++ b/release/scripts/startup/bl_operators/object.py @@ -873,7 +873,7 @@ class DupliOffsetFromCursor(Operator): scene = context.scene collection = context.collection - collection.instance_offset = scene.cursor_location + collection.instance_offset = scene.cursor.location return {'FINISHED'} @@ -904,7 +904,7 @@ class LoadImageAsEmpty: def execute(self, context): scene = context.scene space = context.space_data - cursor = scene.cursor_location + cursor = scene.cursor.location try: image = bpy.data.images.load(self.filepath, check_existing=True) |