From 9bed3dcf8b09aeb9b084d164483525b1802b7c5f Mon Sep 17 00:00:00 2001 From: Mike New Date: Fri, 2 Sep 2016 22:07:56 -0700 Subject: [PATCH] fixed printer depth not saving or loading properly in the printer profile --- src/octoprint/static/js/app/viewmodels/printerprofiles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/printerprofiles.js b/src/octoprint/static/js/app/viewmodels/printerprofiles.js index 44da1879..27cb1b20 100644 --- a/src/octoprint/static/js/app/viewmodels/printerprofiles.js +++ b/src/octoprint/static/js/app/viewmodels/printerprofiles.js @@ -176,8 +176,8 @@ $(function() { self.model(data.model); self.volumeWidth(data.volume.width); - self.volumeHeight(data.volume.depth); - self.volumeDepth(data.volume.height); + self.volumeHeight(data.volume.height); + self.volumeDepth(data.volume.depth); self.volumeFormFactor(data.volume.formFactor); self.volumeOrigin(data.volume.origin); @@ -220,7 +220,7 @@ $(function() { model: self.model(), volume: { width: parseFloat(self.volumeWidth()), - depth: parseFloat(self.volumeHeight()), + depth: parseFloat(self.volumeDepth()), height: parseFloat(self.volumeHeight()), formFactor: self.volumeFormFactor(), origin: self.volumeOrigin()