mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Don't attempt to draw a connecting line to a missing target.
This commit is contained in:
parent
154d08a9c7
commit
592222aba8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue