mirror of https://github.com/kivy/kivy.git
Fix shapecollisions example for py2
This commit is contained in:
parent
fa1e0b2834
commit
a755e21a2e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue