Browse Source

Clear primDirtyList fix

nockawa 9 years ago
parent
commit
37e6f2aca1
1 changed files with 4 additions and 4 deletions
  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