Skip to content

Commit

Permalink
Fix: Fix bug when running boudary on control-pannel (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
jane-rose committed Dec 21, 2020
1 parent d7a8c0f commit c96a729
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/widgets/Control/Control.jsx
@@ -1,6 +1,5 @@
import map from 'lodash/map';
import includes from 'lodash/includes';
import isUndefined from 'lodash/isUndefined';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
Expand Down Expand Up @@ -210,8 +209,7 @@ class Control extends PureComponent {
if (headType === HEAD_TYPE_CNC) {
gcode.push('G91', 'G0 Z5 F400', 'G90');
}

if (!isUndefined(bbox.max.b)) {
if (workPosition.isFourAxis) {
const angleDiff = Math.abs(bbox.max.b - bbox.min.b);
let maxB = bbox.max.b;
if (angleDiff > 360) {
Expand Down

0 comments on commit c96a729

Please sign in to comment.