Skip to content

Commit

Permalink
🐞 fix: Fixed the bug where the highlighted object's position was inco…
Browse files Browse the repository at this point in the history
…rrect.
  • Loading branch information
xiangechen committed Aug 10, 2024
1 parent f83df92 commit e917851
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/chili-three/src/threeHighlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, [VisualState, LineSegments2]> = new Map();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e917851

Please sign in to comment.