mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Fix negative layers sorting incorrectly
This commit is contained in:
parent
a19cc58e32
commit
c01baaa2a5
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ impl From<i32> for Layer {
|
|||
|
||||
impl From<f32> for Layer {
|
||||
fn from(f: f32) -> Layer {
|
||||
Layer { whole: f as i16, frac: ((f.fract() + 1.).fract() * 65536.) as u16 }
|
||||
Layer { whole: f.floor() as i16, frac: ((f.fract() + 1.).fract() * 65536.) as u16 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue