Skip to content

Commit

Permalink
fixed origin calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
tpwrules committed Sep 2, 2012
1 parent b6ad477 commit db81fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/animation2.py
Expand Up @@ -54,7 +54,7 @@ def render(self): #render ourselves
if not self.show: return #return if we're not being shown
glBindTexture(GL_TEXTURE_2D, self.image)

glTranslatef(self.pos[0]+self.center[0], self.pos[1]+self.center[1], 0)
glTranslatef(self.pos[0]+self.center[0]-self.offset[0], self.pos[1]+self.center[1]-self.offset[1], 0)
glScalef(self.xscale, self.yscale, 1)
glRotatef(self.rot, 0, 0, 1)
glTranslatef(-self.center[0], -self.center[1], 0)
Expand Down

0 comments on commit db81fa6

Please sign in to comment.