소스 검색

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

Raanan Weber 4 년 전
부모
커밋
c434a91b2c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)) {