瀏覽代碼

Bug fix on non instanced pipeline

nockawa 9 年之前
父節點
當前提交
ba3134b058
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Canvas2d/babylon.group2d.ts

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

@@ -295,7 +295,7 @@
                     }
 
                     // Submit render only if we have something to render (everything may be hiden and the floatarray empty)
-                    if (totalRenderCount > 0) {
+                    if (!this.owner.supportInstancedArray || totalRenderCount > 0) {
                         // render all the instances of this model, if the render method returns true then our instances are no longer dirty
                         let renderFailed = !v._modelCache.render(v, context);