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

fix for error with math vis module for 4x3 matricies

parent a77bfac8
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,10 @@ def console_math_data(): ...@@ -42,7 +42,10 @@ def console_math_data():
if var_type is Matrix: if var_type is Matrix:
if var.col_size != 4 or var.row_size != 4: if var.col_size != 4 or var.row_size != 4:
var = var.to_4x4() if var.row_size == var.col_size:
var = var.to_4x4()
else: # todo, support 4x3 matrix
continue
data_matrix[key] = var data_matrix[key] = var
elif var_type is Vector: elif var_type is Vector:
if len(var) < 3: if len(var) < 3:
......
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