fix potential crash into stock when parts are z bottom anchored. fix fdm/cnc pmode check
This commit is contained in:
parent
1ac95d785b
commit
0d9e549da4
2 changed files with 3 additions and 3 deletions
|
|
@ -239,7 +239,7 @@ function preparePreview(callback, scale = 1, offset = 0) {
|
|||
const { device, process, controller } = settings;
|
||||
|
||||
if (complete.preview === feature.pmode) {
|
||||
if (device.extruders.length > 1) {
|
||||
if (device.extruders && device.extruders.length > 1) {
|
||||
if (++feature.pmode > 2) {
|
||||
feature.pmode = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue