From b19d69bd9287d70d93bbe6af6485c43f75690c71 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 9 Aug 2018 11:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=80=89=E6=8B=A9=E6=A1=86?= =?UTF-8?q?=E5=AF=B9BufferGeometry=E7=9A=84=E6=94=AF=E6=8C=81,=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=B4=A2=E5=BC=95=E8=80=8C=E4=B8=8D=E6=98=AF=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E7=82=B9=E4=B8=AA=E6=95=B0=E4=B8=BA3=E7=9A=84?= =?UTF-8?q?=E5=80=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/SelectBase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/SelectBase.ts b/src/Editor/SelectBase.ts index 2e75f6afe..65dc66ccf 100644 --- a/src/Editor/SelectBase.ts +++ b/src/Editor/SelectBase.ts @@ -115,9 +115,9 @@ export class SelectSetBase else if (geo instanceof BufferGeometry) { //由于threejs对buffGeometry转换错误. - let pos = geo.getAttribute("position"); - if (pos.count % 3 !== 0) + if (!geo.index)// && pos.count % 3 !== 0 { + let pos = geo.getAttribute("position"); for (let i = 0; i < pos.count * 3; i += 3) { let p = new Vector3(pos.array[i], pos.array[i + 1], pos.array[i + 2]);