Skip to content

Commit

Permalink
better icon styling when yaw is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
trey0 committed Aug 6, 2011
1 parent cbdb810 commit eb2dc97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions geocamLens/models.py
Expand Up @@ -183,9 +183,8 @@ def galleryThumb(self):

def getRotatedIconDict(self):
if self.yaw == None:
rot = 0
else:
rot = self.yaw
return self.getIconDict()
rot = self.yaw
rotRounded = 10 * int(0.1 * rot + 0.5)
if rotRounded == 360:
rotRounded = 0
Expand Down

0 comments on commit eb2dc97

Please sign in to comment.