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

View file

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