diff options
Diffstat (limited to 'space_view3d_math_vis/utils.py')
-rw-r--r-- | space_view3d_math_vis/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/space_view3d_math_vis/utils.py b/space_view3d_math_vis/utils.py index a9c26ae4..5511cf30 100644 --- a/space_view3d_math_vis/utils.py +++ b/space_view3d_math_vis/utils.py @@ -43,8 +43,12 @@ def console_math_data(): var_type = type(var) if var_type is Matrix: + if var.col_size != 4 or var.row_size != 4: + var = var.copy().resize4x4() data_matrix[key] = var elif var_type is Vector: + if len(var) < 3: + var = var.copy().resize3D() data_vector[key] = var elif var_type is Quaternion: data_quat[key] = var |