gears.py: allow zero spokes

This commit is contained in:
Florian Festi 2016-10-12 22:48:00 +02:00
parent 3ce2115365
commit 24a8588485
1 changed files with 3 additions and 0 deletions

View File

@ -428,6 +428,9 @@ class Gears():
- if no room (collision) then spokes not drawn
"""
if not spokes:
return []
# Spokes
collision = False # assume we draw spokes
messages = [] # messages to send back about changes.