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 /space_view3d_math_vis
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 'space_view3d_math_vis')
-rw-r--r--space_view3d_math_vis/draw.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py
index d4acda2f..0490a5ce 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -112,13 +112,13 @@ def draw_callback_px():
offset_y = 20
if data_quat:
- loc = context.scene.cursor_location.copy()
+ loc = context.scene.cursor.location.copy()
for key, mat in data_quat.items():
draw_text(key, loc, dy=-offset_y)
offset_y += 20
if data_euler:
- loc = context.scene.cursor_location.copy()
+ loc = context.scene.cursor.location.copy()
for key, mat in data_euler.items():
draw_text(key, loc, dy=-offset_y)
offset_y += 20
@@ -143,7 +143,7 @@ def draw_callback_view():
draw_matrices(list(data_matrix.values()), scale, with_bounding_box)
if data_euler or data_quat:
- cursor = bpy.context.scene.cursor_location.copy()
+ cursor = bpy.context.scene.cursor.location.copy()
derived_matrices = []
for quat in data_quat.values():
matrix = quat.to_matrix().to_4x4()