update stock index visuals on widget.add event

This commit is contained in:
Stewart Allen 2022-10-31 09:59:50 -04:00
commit e1d83b01c6
2 changed files with 6 additions and 1 deletions

View file

@ -89,7 +89,6 @@ function platformUpdateTopZ(zdelta) {
const { process, stock } = current();
const hasStock = stock.x && stock.y && stock.z;
const MODE = get_mode();
api.widgets.each(widget => {
if (MODE === MODES.CAM) {
const bounds = widget.getBoundingBox();