diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 04:49:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 04:51:10 +0300 |
commit | 9999dada60a64eb27b37c4d711f4c3979888253e (patch) | |
tree | b325eb58ec754c883683696683933fc9d368eb0d /measureit/measureit_main.py | |
parent | dd0dffef42ae64d1bf16e879e3f1470ce3bf5cad (diff) |
Update for API change: scene.cursor_location -> scene.cursor.location
Note that some scripts still used the 3D view cursor which has been
removed for a while.
Diffstat (limited to 'measureit/measureit_main.py')
-rw-r--r-- | measureit/measureit_main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/measureit/measureit_main.py b/measureit/measureit_main.py index d6e14dc7..43ae6d22 100644 --- a/measureit/measureit_main.py +++ b/measureit/measureit_main.py @@ -1824,7 +1824,7 @@ class MEASUREIT_OT_AddNote(Operator): if context.area.type == 'VIEW_3D': bpy.ops.object.empty_add(type='PLAIN_AXES') myempty = bpy.data.objects[bpy.context.active_object.name] - myempty.location = bpy.context.scene.cursor_location + myempty.location = bpy.context.scene.cursor.location myempty.empty_display_size = 0.01 myempty.name = "Annotation" # Add properties |