From db8034d89413dde81d425a2e7bb51f64f8e37378 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 3 Apr 2011 10:33:59 +0000 Subject: [PATCH] Node : fixed setTransformRefresh to properly set the transform refresh to all the node's children. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7171 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/Node.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/scene/Node.java b/engine/src/core/com/jme3/scene/Node.java index d3e6079d0..28bc6cac9 100644 --- a/engine/src/core/com/jme3/scene/Node.java +++ b/engine/src/core/com/jme3/scene/Node.java @@ -101,7 +101,7 @@ public class Node extends Spatial implements Savable { super.setTransformRefresh(); for (Spatial child : children){ if ((child.refreshFlags & RF_TRANSFORM) != 0) - return; + continue; child.setTransformRefresh(); } @@ -112,7 +112,7 @@ public class Node extends Spatial implements Savable { super.setLightListRefresh(); for (Spatial child : children){ if ((child.refreshFlags & RF_LIGHTLIST) != 0) - return; + continue; child.setLightListRefresh(); }