CalciferZh / AMCParser

Parse and visualize asf/amc files from CMU MoCap dataset.
MIT License
137 stars 27 forks source link

wrong in ',' and '.' pressed #1

Closed grok-phantom closed 6 years ago

grok-phantom commented 6 years ago
 if pressed[pygame.K_COMMA]:
      self.frame -= 1
      if self.frame >= len(self.motions):
        self.frame = 0
 if pressed[pygame.K_PERIOD]:
      self.frame += 1
      if self.frame < 0:
        self.frame = len(self.motions) - 1

should be

 if pressed[pygame.K_COMMA]:
     self.frame -= 1
     if self.frame < 0:
        self.frame = len(self.motions) - 1
 if pressed[pygame.K_PERIOD]:
      self.frame += 1
      if self.frame >= len(self.motions):
        self.frame = 0
CalciferZh commented 6 years ago

Fixed. Thanks!