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:
authorGaia Clary <gaia.clary@machinimatrix.org>2017-09-03 21:06:45 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2017-09-03 21:11:56 +0300
commite66713cfad6e9227f85314cc80002f72e1afd0d2 (patch)
treec7fe9813964c3ec8b2ddf9ec4747eabf8ef2afd1 /space_view3d_math_vis
parent6314517f4884e1b666b9837e6f36be4d16f631e8 (diff)
fix T52642: math_vis - avoid eror message when defining an empty array in the blender console.
Diffstat (limited to 'space_view3d_math_vis')
-rw-r--r--space_view3d_math_vis/draw.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py
index 09cb2fe2..1875afcd 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -113,7 +113,8 @@ def draw_callback_px():
# lines
if data_vector_array:
for key, vec in data_vector_array.items():
- draw_text(key, vec[0])
+ if vec and len(vec) > 0:
+ draw_text(key, vec[0])
# matrix
if data_matrix: