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:
authorNBurn <nbwashburn@gmail.com>2017-07-26 19:54:06 +0300
committerNBurn <nbwashburn@gmail.com>2017-07-26 19:54:06 +0300
commita99e5be48f07106de31de854bc7a6af74ad3ecd0 (patch)
treec89e202b2acd315b7d2d9fca5e8a6f06c1580c0e /measureit/measureit_render.py
parent47ab6e8970b69fd328c447f392ecd1ae1971ccd5 (diff)
Fix T52166 for MeasureIt: stops None subscripting
Adds checks to prevent several functions from inadvertently trying to subscript a NoneType and revises the Mesh Debug panel design.
Diffstat (limited to 'measureit/measureit_render.py')
-rw-r--r--measureit/measureit_render.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/measureit/measureit_render.py b/measureit/measureit_render.py
index c2524eb1..af567c91 100644
--- a/measureit/measureit_render.py
+++ b/measureit/measureit_render.py
@@ -189,8 +189,14 @@ def render_main(self, context, animation=False):
if scene.measureit_debug is True:
selobj = bpy.context.selected_objects
for myobj in selobj:
+ if scene.measureit_debug_objects is True:
+ draw_object(context, myobj, None, None)
if scene.measureit_debug_vertices is True:
draw_vertices(context, myobj, None, None)
+ elif scene.measureit_debug_vert_loc is True:
+ draw_vertices(context, myobj, None, None)
+ if scene.measureit_debug_edges is True:
+ draw_edges(context, myobj, None, None)
if scene.measureit_debug_faces is True or scene.measureit_debug_normals is True:
draw_faces(context, myobj, None, None)