Don't attempt to draw a connecting line to a missing target.

This commit is contained in:
Bill Currie 2012-09-11 15:01:43 +09:00
parent 154d08a9c7
commit 592222aba8
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def draw_callback(self, context):
if field.name == "target" and field.value:
target = field.value
break
if target:
if target and target in entity_targets:
targets = entity_targets[target]
bgl.glColor4f(ec.color[0], ec.color[1], ec.color[2], 1)
for ton in targets: