trails: stop the thread when gadget is no longer visible

char-rename
Alexander Iljin 2016-11-28 00:36:25 +03:00 committed by John Benediktsson
parent 429cdf3343
commit 54feb5df6c
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ TUPLE: trails-gadget < gadget paused points ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
M: trails-gadget ungraft* ( trails-gadget -- ) t >>paused drop ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
M: trails-gadget pref-dim* ( trails-gadget -- dim ) drop { 500 500 } ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!