Ver código fonte

Merge pull request #1274 from nockawa/master

Fix Clear PrimDirtyList
David Catuhe 9 anos atrás
pai
commit
f43790b76b
1 arquivos alterados com 4 adições e 4 exclusões
  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