@sienci/gviewer 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3007,16 +3007,16 @@ class Hi {
3007
3007
  }
3008
3008
  async loadFromWorkerData(Q) {
3009
3009
  this.currentLines = [];
3010
- const { rapid: B, cut: A } = TP(Q);
3010
+ const { rapid: B, cut: A } = TP(Q), t = (Q.toolchangeCount ?? 0) > 0;
3011
3011
  this.setToolpathGeometry({
3012
3012
  rapid: {
3013
3013
  positions: B.positions,
3014
- colors: B.colors,
3014
+ colors: void 0,
3015
3015
  prefixEndVertex: B.prefixEndVertex
3016
3016
  },
3017
3017
  cuts: [{
3018
3018
  positions: A.positions,
3019
- colors: A.colors,
3019
+ colors: t ? A.colors : void 0,
3020
3020
  prefixEndVertex: A.prefixEndVertex
3021
3021
  }],
3022
3022
  cutBucketCount: 1