Revision: 946
Author: allain.lalonde
Date: Sat Jan 23 17:26:07 2010
Log: Making PRootuse for each syntax
http://code.google.com/p/piccolo2d/source/detail?r=946

Modified:
/piccolo2d.java/branches/2.0-spike/core/src/main/java/org/piccolo2d/PRoot.java

=======================================
--- /piccolo2d.java/branches/2.0-spike/core/src/main/java/org/piccolo2d/PRoot.java Wed Jan 20 10:01:15 2010 +++ /piccolo2d.java/branches/2.0-spike/core/src/main/java/org/piccolo2d/PRoot.java Sat Jan 23 17:26:07 2010
@@ -238,14 +238,13 @@

         if (!isInteracting && !getInteracting()) {
             // force all the child cameras to repaint
-            for (int i = 0; i < getChildrenCount(); i++) {
-                final PNode child = getChild(i);
+               for (PNode child : getChildrenReference()) {
                 if (child instanceof PCamera) {
                     child.repaint();
                 }
             }
-
-        }
+        }
+
         if (wasInteracting != isInteracting) {
firePropertyChange(PROPERTY_CODE_INTERACTING_CHANGED, PROPERTY_INTERACTING_CHANGED, Boolean .valueOf(wasInteracting), Boolean.valueOf(isInteracting));

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to