[fix] clitools anaglyph should not color black points

This commit is contained in:
alban 2020-10-10 20:11:54 +02:00
parent eadc8ca19d
commit be60f25b16

View File

@ -72,7 +72,8 @@ def cycleColor( pl ):
debug(name,"currentColor:{}".format(currentColor)) debug(name,"currentColor:{}".format(currentColor))
for i in range( 0, len(pl)): for i in range( 0, len(pl)):
pl[i][2] = rgb2int( currentColor) if pl[i][2] != 0:
pl[i][2] = rgb2int( currentColor)
# change the composant if target reached # change the composant if target reached
if value <= target and currentDirection == DOWN or value >= target and currentDirection == UP : if value <= target and currentDirection == DOWN or value >= target and currentDirection == UP :