Skip to content

Commit

Permalink
fix set a axis zero not updating visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiabeluli committed Jun 5, 2024
1 parent ba3212b commit e576658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/widgets/Visualizer/Visualizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ class Visualizer extends Component {
}

// Work position
const { x: wpox0, y: wpoy0, z: wpoz0, z: wpoa0, } = this.workPosition;
const { x: wpox1, y: wpoy1, z: wpoz1, z: wpoa1 } = newPos;
const { x: wpox0, y: wpoy0, z: wpoz0, a: wpoa0, } = this.workPosition;
const { x: wpox1, y: wpoy1, z: wpoz1, a: wpoa1 } = newPos;
if (wpox0 !== wpox1 || wpoy0 !== wpoy1 || wpoz0 !== wpoz1 || wpoa0 !== wpoa1) {
this.workPosition = newPos;
needUpdatePosition = true;
Expand Down

0 comments on commit e576658

Please sign in to comment.