Fix shapecollisions example for py2

This commit is contained in:
Peter Badida 2017-05-13 00:37:38 +02:00
parent fa1e0b2834
commit a755e21a2e
1 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ class RegularShape(BaseShape):
# draw Mesh shape from generated poly points
with self.canvas:
Color(rgba=(*color, 0.6))
Color(rgba=(color[0], color[1], color[2], 0.6))
self.shape = Mesh(
pos=self.pos,
vertices=vertices,
@ -301,7 +301,7 @@ class MeshShape(BaseShape):
# draw Mesh shape from generated poly points
with self.canvas:
Color(rgba=(*color, 0.6))
Color(rgba=(color[0], color[1], color[2], 0.6))
self.shape = Mesh(
pos=self.pos,
vertices=vertices,