Explorar el Código

If indices are empty use unindexed intersection
Unindexed mershes are now supported when being picked.

Raanan Weber hace 4 años
padre
commit
c434a91b2c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Meshes/abstractMesh.ts

+ 1 - 1
src/Meshes/abstractMesh.ts

@@ -1590,7 +1590,7 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
             if (!material) {
                 continue;
             }
-            if (this.getIndices()?.length && (material.fillMode == Constants.MATERIAL_TriangleStripDrawMode ||
+            if (this.getIndices() && (material.fillMode == Constants.MATERIAL_TriangleStripDrawMode ||
                     material.fillMode == Constants.MATERIAL_TriangleFillMode ||
                     material.fillMode == Constants.MATERIAL_WireFrameFillMode ||
                     material.fillMode == Constants.MATERIAL_PointFillMode)) {