Fixed stale color persistence issue
This commit is contained in:
parent
873cda7357
commit
d9ed8274f6
2 changed files with 4 additions and 0 deletions
|
@ -415,7 +415,10 @@ class RenderLayer(object):
|
||||||
glPushMatrix()
|
glPushMatrix()
|
||||||
glScalef(*self.scale)
|
glScalef(*self.scale)
|
||||||
if self.color != None:
|
if self.color != None:
|
||||||
|
#print("We are coloring with %s" % (self.color,))
|
||||||
glColor4f(*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[0], 1.0, 0.0, 0.0)
|
||||||
glRotatef(self.rotations[1], 0.0, 1.0, 0.0)
|
glRotatef(self.rotations[1], 0.0, 1.0, 0.0)
|
||||||
glRotatef(self.rotations[2], 0.0, 0.0, 1.0)
|
glRotatef(self.rotations[2], 0.0, 0.0, 1.0)
|
||||||
|
|
|
@ -69,6 +69,7 @@ class pipeline_manager(object):
|
||||||
physics.mgr.postcollide()
|
physics.mgr.postcollide()
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
|
glColor4f(1.0, 1.0, 1.0, 1.0)
|
||||||
for i, renarr in enumerate(self.renders):
|
for i, renarr in enumerate(self.renders):
|
||||||
for ren in renarr:
|
for ren in renarr:
|
||||||
ren.owner.calc_render_pos()
|
ren.owner.calc_render_pos()
|
||||||
|
|
Loading…
Add table
Reference in a new issue