Fixed stale color persistence issue

This commit is contained in:
cecilkorik 2017-09-18 14:41:23 -04:00
parent 873cda7357
commit d9ed8274f6
2 changed files with 4 additions and 0 deletions

View file

@ -415,7 +415,10 @@ class RenderLayer(object):
glPushMatrix()
glScalef(*self.scale)
if self.color != None:
#print("We are coloring with %s" % (self.color,))
glColor4f(*self.color)
else:
glColor4f(1.0,1.0,1.0,1.0)
glRotatef(self.rotations[0], 1.0, 0.0, 0.0)
glRotatef(self.rotations[1], 0.0, 1.0, 0.0)
glRotatef(self.rotations[2], 0.0, 0.0, 1.0)

View file

@ -69,6 +69,7 @@ class pipeline_manager(object):
physics.mgr.postcollide()
def render(self):
glColor4f(1.0, 1.0, 1.0, 1.0)
for i, renarr in enumerate(self.renders):
for ren in renarr:
ren.owner.calc_render_pos()