Skip to content

Commit

Permalink
fix bug in orbit.py if you are not taking snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed Apr 27, 2018
1 parent 43ff7ce commit 4ff8992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonClient/orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, radius = 2, altitude = 10, speed = 2, iterations = 1, center
self.snapshot_index = 0
self.takeoff = False # whether we did a take off

if self.snapshots > 0:
if self.snapshots is not None and self.snapshots > 0:
self.snapshot_delta = 360 / self.snapshots

if self.iterations <= 0:
Expand Down

0 comments on commit 4ff8992

Please sign in to comment.