This commit is contained in:
Stewart Allen 2024-09-03 15:14:27 -04:00
commit eb85ab002c
2 changed files with 7 additions and 12 deletions

View file

@ -234,8 +234,8 @@ CAM.init = function(kiri, api) {
updateAxisMode();
});
api.event.on("cam.stock.toggle", () => {
camStock.visible = !camStock.visible;
api.event.on("cam.stock.toggle", (bool) => {
camStock && (camStock.visible = bool ?? !camStock.visible);
});
api.event.on("boolean.click", api.platform.update_bounds);