Browse Source

Fix Highlight layer multi material issue

sebastien 6 năm trước cách đây
mục cha
commit
620586ca05
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/Layer/babylon.effectLayer.ts

+ 2 - 2
src/Layer/babylon.effectLayer.ts

@@ -343,7 +343,7 @@ module BABYLON {
                 return false;
             }
 
-            if (!material.isReady(subMesh.getMesh(), useInstances)) {
+            if (!material.isReadyForSubMesh(subMesh.getMesh(), subMesh, useInstances)) {
                 return false;
             }
 
@@ -452,7 +452,7 @@ module BABYLON {
 
             // Check
             if (!currentEffect.isReady()) {
-                return;
+                return;
             }
 
             for (var i = 0; i < this._postProcesses.length; i++) {