fix swap axis selection
This commit is contained in:
parent
b92cc89366
commit
32f7c236a0
2 changed files with 5 additions and 3 deletions
|
|
@ -303,10 +303,10 @@
|
|||
|
||||
// swap Z axis with least delta axis
|
||||
let swap = 2;
|
||||
if (dy < Math.max(dx,dz)) {
|
||||
if (dy < dx && dy < dz) {
|
||||
// swap y,z
|
||||
swap = 1;
|
||||
} else if (dx < Math.max(dy,dz)) {
|
||||
} else if (dx < dy && dx < dz) {
|
||||
// swap x,z
|
||||
swap = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue