Browse Source

check indices

Cedric Guillemet 4 years ago
parent
commit
556d325fa0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Meshes/abstractMesh.ts

+ 1 - 1
src/Meshes/abstractMesh.ts

@@ -1545,7 +1545,7 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
             if (!material) {
             if (!material) {
                 continue;
                 continue;
             }
             }
-            if (this.getIndices() && (material.fillMode == Constants.MATERIAL_TriangleStripDrawMode)) {
+            if (this.getIndices()?.length && (material.fillMode == Constants.MATERIAL_TriangleStripDrawMode)) {
                 anySubmeshSupportInterect = true;
                 anySubmeshSupportInterect = true;
                 break;
                 break;
             }
             }