Permalink
Browse files

fix z plane position on build volume unit change

  • Loading branch information...
1 parent a0599b8 commit eb8c1244ba9563dd6e75b5e373acee0fac720c64 @lautr3k committed Mar 18, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/main.js
View
@@ -97,7 +97,7 @@ function slice(layerNumber) {
// get new shapes list
shapes = slice.shapes;
- zPosition -= settings.get('buildVolume.size.z') / 2;
+ zPosition -= viewer3d.buildVolume.size.z / 2;
// add new shapes
for (var i = 0, il = shapes.length; i < il; i++) {

0 comments on commit eb8c124

Please sign in to comment.