Bläddra i källkod

Merge pull request #1274 from nockawa/master

Fix Clear PrimDirtyList
David Catuhe 9 år sedan
förälder
incheckning
f43790b76b
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      src/Canvas2d/babylon.group2d.ts

+ 4 - 4
src/Canvas2d/babylon.group2d.ts

@@ -393,11 +393,11 @@
                             p._prepareRender(context);
                         }
                     });
-
-                    // Everything is updated, clear the dirty list
-                    this._renderableData._primDirtyList.forEach(p => p._resetPropertiesDirty());
-                    this._renderableData._primDirtyList.splice(0);
                 }
+
+                // Everything is updated, clear the dirty list
+                this._renderableData._primDirtyList.forEach(p => p._resetPropertiesDirty());
+                this._renderableData._primDirtyList.splice(0);
             }
 
             // A renderable group has a list of direct children that are also renderable groups, we recurse on them to also prepare them