소스 검색

Merge pull request #1274 from nockawa/master

Fix Clear PrimDirtyList
David Catuhe 9 년 전
부모
커밋
f43790b76b
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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