浏览代码

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)) {