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-10-17 05:10:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-17 05:10:56 +0400
commitad5701fdc46bb97164cbf548c3e81cf732e00a6d (patch)
tree901724fb9efee87baa3792b7ec3a96bd5f3ca09a /space_view3d_math_vis
parenta77bfac8742a41d4f98af6d46bcff2b3688fc663 (diff)
fix for error with math vis module for 4x3 matricies
Diffstat (limited to 'space_view3d_math_vis')
-rw-r--r--space_view3d_math_vis/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/space_view3d_math_vis/utils.py b/space_view3d_math_vis/utils.py
index 4fbc724e..9d21845d 100644
--- a/space_view3d_math_vis/utils.py
+++ b/space_view3d_math_vis/utils.py
@@ -42,7 +42,10 @@ def console_math_data():
if var_type is Matrix:
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
elif var_type is Vector:
if len(var) < 3: