Skip to content

Commit a27657e

Browse files
committed
UnderWater: Allow float input
Signed-off-by: martinRenou <[email protected]>
1 parent 7b46c7b commit a27657e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipygany/ipygany.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class UnderWater(Effect):
491491

492492
_model_name = Unicode('UnderWaterModel').tag(sync=True)
493493

494-
input = Union((Tuple(trait=Unicode, minlen=2, maxlen=2), Unicode())).tag(sync=True)
494+
input = Union((Tuple(trait=Unicode, minlen=2, maxlen=2), Unicode(), CFloat(0.))).tag(sync=True)
495495

496496
default_color = Color('#F2FFD2').tag(sync=True)
497497
texture = Instance(Image, allow_none=True, default_value=None).tag(sync=True, **widget_serialization)

0 commit comments

Comments
 (0)