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>2011-02-05 10:08:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-05 10:08:34 +0300
commit696b0366f5c46dcfcb50f53b4ca4f59c593b88fb (patch)
tree8dfbeb67383adc39b5742c661f61a55eb4066659 /space_view3d_math_vis/draw.py
parentdfd3febce161e76015beb0faac516724aceff453 (diff)
update for changes in mathutuils.
Diffstat (limited to 'space_view3d_math_vis/draw.py')
-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 a7f25d37..5f2593b5 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -193,7 +193,7 @@ def draw_callback_view(self, context):
glBegin(GL_POINTS)
glColor3f(0.5, 0.5, 1)
for key, vec in data_vector.items():
- glVertex3f(*vec.copy().resize3D())
+ glVertex3f(*vec.to_3d())
glEnd();
glPointSize(1.0)
@@ -219,13 +219,13 @@ def draw_callback_view(self, context):
if data_quat:
loc = context.scene.cursor_location.copy()
for quat in data_quat.values():
- mat = quat.to_matrix().resize4x4()
+ mat = quat.to_matrix().to_4x4()
mat[3][0:3] = loc
draw_matrix(mat)
if data_euler:
loc = context.scene.cursor_location.copy()
for eul in data_euler.values():
- mat = eul.to_matrix().resize4x4()
+ mat = eul.to_matrix().to_4x4()
mat[3][0:3] = loc
draw_matrix(mat)