Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Unified Diff: sky/sdk/example/game/lib/sprite_box.dart

Issue 1216573009: Adds particle systems to sprites (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/example/game/lib/sprite_box.dart
diff --git a/sky/sdk/example/game/lib/sprite_box.dart b/sky/sdk/example/game/lib/sprite_box.dart
index 943d5fcbbb72369eaceb26e3d24adc62935f7a9b..25598c381ef3b8542730b6992b996bfc660f93cb 100644
--- a/sky/sdk/example/game/lib/sprite_box.dart
+++ b/sky/sdk/example/game/lib/sprite_box.dart
@@ -293,7 +293,8 @@ class SpriteBox extends RenderBox {
void _callUpdate(Node node, double dt) {
node.update(dt);
- for (Node child in node.children) {
+ for (int i = node.children.length - 1; i >= 0; i--) {
+ Node child = node.children[i];
if (!child.paused) {
_callUpdate(child, dt);
}

Powered by Google App Engine
This is Rietveld 408576698