Skip to content

Commit 8030b2f

Browse files
committed
BF: ShapeStim was not setting opacity when opacity is 0
1 parent 2e92fdf commit 8030b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/visual/shape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __init__(self,
169169
" Please use color and colorSpace args instead")
170170
self.setFillColor(fillRGB, colorSpace='rgb', log=None)
171171
self.contrast = contrast
172-
if opacity:
172+
if opacity is not None:
173173
self.opacity = opacity
174174

175175
# Other stuff

0 commit comments

Comments
 (0)