Skip to content

Commit

Permalink
🐞 fix: Add Wire type to the setState method
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Sep 16, 2023
1 parent 952e2cd commit d21d3e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/chili-three/src/threeShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,13 @@ export class ThreeShape extends Object3D implements IVisualShape {
setFaceState();
setEdgeState();
} else if (index !== undefined) {
if (ShapeType.hasEdge(type)) {
if (ShapeType.hasFace(type)) {
setFaceState();
}
if (ShapeType.hasEdge(type) && this._edges) {
if ((ShapeType.hasEdge(type) || ShapeType.hasWire(type)) && this._edges) {
setEdgeState();
}
// TODO: other shape
}
}

Expand Down

0 comments on commit d21d3e2

Please sign in to comment.