From 537ad49d2866838acf690891d0414a3b0d429adf Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Sat, 31 Dec 2011 09:20:59 +0000
Subject: [PATCH] updaye for column major matrix

---
 space_view3d_math_vis/__init__.py | 8 ++++----
 space_view3d_math_vis/draw.py     | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/space_view3d_math_vis/__init__.py b/space_view3d_math_vis/__init__.py
index 3e025fe95..a4f994125 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 6636ea683..509881e0f 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)
-- 
GitLab