fix restarting an already exec'ing transition
This commit is contained in:
parent
1634b1126b
commit
736af38518
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
(var transition-pending nil)
|
(var transition-pending nil)
|
||||||
|
|
||||||
(fn switch-demo [new-demo]
|
(fn switch-demo [new-demo]
|
||||||
(when (not= active-demo new-demo)
|
(when (and (not= active-demo new-demo) (not transition))
|
||||||
(set transition-pending new-demo)
|
(set transition-pending new-demo)
|
||||||
(set transition (pxl8.transition_create :pixelate 0.5))
|
(set transition (pxl8.transition_create :pixelate 0.5))
|
||||||
(pxl8.transition_set_color transition 0xFF000000)
|
(pxl8.transition_set_color transition 0xFF000000)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue