Explorar o código

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

Raanan Weber %!s(int64=4) %!d(string=hai) anos
pai
achega
c434a91b2c
Modificáronse 1 ficheiros con 1 adicións e 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)) {