From e9178516363cde490e8d944c98e6be43f5640be7 Mon Sep 17 00:00:00 2001 From: xiange Date: Sat, 10 Aug 2024 22:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Fixed=20the=20bug=20where?= =?UTF-8?q?=20the=20highlighted=20object's=20position=20was=20incorrect.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/chili-three/src/threeHighlighter.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/chili-three/src/threeHighlighter.ts b/packages/chili-three/src/threeHighlighter.ts index 57cca58c..d50601f4 100644 --- a/packages/chili-three/src/threeHighlighter.ts +++ b/packages/chili-three/src/threeHighlighter.ts @@ -16,6 +16,7 @@ import { hilightEdgeMaterial, selectedEdgeMaterial } from "./common"; import { ThreeGeometry } from "./threeGeometry"; import { ThreeGeometryFactory } from "./threeGeometryFactory"; import { ThreeVisualContext } from "./threeVisualContext"; +import { ThreeHelper } from "./threeHelper"; export class GeometryState { private readonly _states: Map = new Map(); @@ -139,6 +140,7 @@ export class GeometryState { console.warn(`Invalid type ${type} for ${key}`); return undefined; } + points = ThreeHelper.toMatrix(this.geometry.matrixWorld).ofPoints(points); let lineGeometry = new LineSegmentsGeometry(); lineGeometry.setPositions(points);