fix isNaN stock top z when no stock set
This commit is contained in:
parent
2af361fc5a
commit
c6e0e6944c
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ function platformUpdateTopZ(zdelta) {
|
|||
const hasStock = stock.x && stock.y && stock.z;
|
||||
const MODE = get_mode();
|
||||
api.widgets.each(widget => {
|
||||
if (MODE === MODES.CAM) {
|
||||
if (MODE === MODES.CAM && hasStock) {
|
||||
const bounds = widget.getBoundingBox();
|
||||
const wzmax = bounds.max.z;
|
||||
const zdelta = process.camZOffset || 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue