Skip to content
Snippets Groups Projects
Commit 537ad49d authored by Campbell Barton's avatar Campbell Barton
Browse files

updaye for column major matrix

parent 8250c351
No related branches found
No related tags found
No related merge requests found
...@@ -26,10 +26,10 @@ bl_info = { ...@@ -26,10 +26,10 @@ bl_info = {
"api": 35622, "api": 35622,
"location": "View3D > Tool Shelf or Console", "location": "View3D > Tool Shelf or Console",
"description": "Display console defined mathutils variables in the 3D view", "description": "Display console defined mathutils variables in the 3D view",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"
"Scripts/3D_interaction/Math_Viz", "Scripts/3D_interaction/Math_Viz",
"tracker_url": "http://projects.blender.org/tracker/index.php?"\ "tracker_url": "http://projects.blender.org/tracker/index.php?"
"func=detail&aid=25545", "func=detail&aid=25545",
"support": "OFFICIAL", "support": "OFFICIAL",
"category": "3D View"} "category": "3D View"}
......
...@@ -220,12 +220,12 @@ def draw_callback_view(self, context): ...@@ -220,12 +220,12 @@ def draw_callback_view(self, context):
loc = context.scene.cursor_location.copy() loc = context.scene.cursor_location.copy()
for quat in data_quat.values(): for quat in data_quat.values():
mat = quat.to_matrix().to_4x4() mat = quat.to_matrix().to_4x4()
mat[3][0:3] = loc mat.translation = loc
draw_matrix(mat) draw_matrix(mat)
if data_euler: if data_euler:
loc = context.scene.cursor_location.copy() loc = context.scene.cursor_location.copy()
for eul in data_euler.values(): for eul in data_euler.values():
mat = eul.to_matrix().to_4x4() mat = eul.to_matrix().to_4x4()
mat[3][0:3] = loc mat.translation = loc
draw_matrix(mat) draw_matrix(mat)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment