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-12-31 13:20:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-31 13:20:59 +0400
commit537ad49d2866838acf690891d0414a3b0d429adf (patch)
treeb03e3c4885e42fe150536bea1096e996b9e868f1 /space_view3d_math_vis
parent8250c351a62845d3aa5e4be29fdaedf4e7d74f53 (diff)
updaye for column major matrix
Diffstat (limited to 'space_view3d_math_vis')
-rw-r--r--space_view3d_math_vis/__init__.py8
-rw-r--r--space_view3d_math_vis/draw.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/space_view3d_math_vis/__init__.py b/space_view3d_math_vis/__init__.py
index 3e025fe9..a4f99412 100644
--- a/space_view3d_math_vis/__init__.py
+++ b/space_view3d_math_vis/__init__.py
@@ -26,10 +26,10 @@ bl_info = {
"api": 35622,
"location": "View3D > Tool Shelf or Console",
"description": "Display console defined mathutils variables in the 3D view",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
- "Scripts/3D_interaction/Math_Viz",
- "tracker_url": "http://projects.blender.org/tracker/index.php?"\
- "func=detail&aid=25545",
+ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"
+ "Scripts/3D_interaction/Math_Viz",
+ "tracker_url": "http://projects.blender.org/tracker/index.php?"
+ "func=detail&aid=25545",
"support": "OFFICIAL",
"category": "3D View"}
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py
index 6636ea68..509881e0 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -220,12 +220,12 @@ def draw_callback_view(self, context):
loc = context.scene.cursor_location.copy()
for quat in data_quat.values():
mat = quat.to_matrix().to_4x4()
- mat[3][0:3] = loc
+ mat.translation = loc
draw_matrix(mat)
if data_euler:
loc = context.scene.cursor_location.copy()
for eul in data_euler.values():
mat = eul.to_matrix().to_4x4()
- mat[3][0:3] = loc
+ mat.translation = loc
draw_matrix(mat)