]> gitweb.factorcode.org Git - factor.git/commitdiff
boids: when randomized, relayout.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 Jan 2018 05:18:24 +0000 (21:18 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 Jan 2018 05:18:24 +0000 (21:18 -0800)
extra/boids/boids.factor

index d9c268797b12e81da0497b2def759acaeed5d07a..63f9c2e177f3298de9dc285929b85b7d308ab5e2 100644 (file)
@@ -110,7 +110,7 @@ M: range-observer model-changed
     [ drop ] [ start-boids-thread ] if ;
 
 : com-randomize ( boids-gadget -- )
-    [ length random-boids ] change-boids drop ;
+    [ length random-boids ] change-boids relayout-1 ;
 
 :: simulation-panel ( boids-gadget -- gadget )
     <pile> white-interior