Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-01 04:49:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-01 04:51:10 +0300
commit9999dada60a64eb27b37c4d711f4c3979888253e (patch)
treeb325eb58ec754c883683696683933fc9d368eb0d /magic_uv
parentdd0dffef42ae64d1bf16e879e3f1470ce3bf5cad (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 'magic_uv')
-rw-r--r--magic_uv/op/align_uv_cursor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/magic_uv/op/align_uv_cursor.py b/magic_uv/op/align_uv_cursor.py
index 86d13179..24c111d0 100644
--- a/magic_uv/op/align_uv_cursor.py
+++ b/magic_uv/op/align_uv_cursor.py
@@ -60,7 +60,7 @@ class _Properties:
bd_size = common.get_uvimg_editor_board_size(area)
else:
bd_size = [1.0, 1.0]
- loc = space.cursor_location
+ loc = space.cursor.location
if bd_size[0] < 0.000001:
cx = 0.0
@@ -84,7 +84,7 @@ class _Properties:
bd_size = [1.0, 1.0]
cx = bd_size[0] * value[0]
cy = bd_size[1] * value[1]
- space.cursor_location = Vector((cx, cy))
+ space.cursor.location = Vector((cx, cy))
scene.muv_align_uv_cursor_enabled = BoolProperty(
name="Align UV Cursor Enabled",
@@ -264,6 +264,6 @@ class MUV_OT_AlignUVCursor(bpy.types.Operator):
cx = cx * bd_size[0]
cy = cy * bd_size[1]
- space.cursor_location = Vector((cx, cy))
+ space.cursor.location = Vector((cx, cy))
return {'FINISHED'}