fix odd layer offset from floating point imprecision
This commit is contained in:
parent
3689f17f26
commit
b333779773
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@
|
||||||
}
|
}
|
||||||
for (let slice of widget.slices) {
|
for (let slice of widget.slices) {
|
||||||
slice.widget = widget;
|
slice.widget = widget;
|
||||||
let z = slice.z + widget.offset.z;
|
let z = (slice.z + widget.offset.z).round(2);
|
||||||
let rec = zrec[z] = zrec[z] || {z, slices:[]};
|
let rec = zrec[z] = zrec[z] || {z, slices:[]};
|
||||||
if (rec.slices.length === 0) {
|
if (rec.slices.length === 0) {
|
||||||
cake.push(rec);
|
cake.push(rec);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue