Skip to content

Commit 884a3f0

Browse files
committed
Bugfix in new animation workflow
1 parent ebba94b commit 884a3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

push2_python/pads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ def set_pads_color(self, color_matrix, animation_matrix=None):
140140
assert len(animation_matrix[i]) == 8, 'Wrong number of animation values in line ({0})'.format(len(animation_matrix[i]))
141141
for j, color in enumerate(line):
142142
animation = ANIMATION_DEFAULT
143+
animation_end_color = 'black'
143144
if animation_matrix is not None:
144145
element = animation_matrix[i][j]
145146
if type(element) == tuple:
146147
animation, animation_end_color = animation_matrix[i][j]
147148
else:
148149
animation = animation_matrix[i][j]
149-
animation_end_color = 'black'
150150
self.set_pad_color((i, j), color=color, animation=animation, animation_end_color=animation_end_color)
151151

152152
def set_all_pads_to_color(self, color='white', animation=ANIMATION_DEFAULT, animation_end_color='black'):

0 commit comments

Comments
 (0)