fix: ceiling
This commit is contained in:
parent
4356793f52
commit
77c87216f7
@ -42,7 +42,7 @@ class ProjectionEffectShell(val effect: ProjectionEffect) {
|
|||||||
|
|
||||||
override fun applyValue() {
|
override fun applyValue() {
|
||||||
val diff = value % step
|
val diff = value % step
|
||||||
if (diff < 0.5) {
|
if (diff < step * 0.5) {
|
||||||
value -= diff
|
value -= diff
|
||||||
} else {
|
} else {
|
||||||
value += (step - diff)
|
value += (step - diff)
|
||||||
@ -67,7 +67,7 @@ class ProjectionEffectShell(val effect: ProjectionEffect) {
|
|||||||
|
|
||||||
override fun applyValue() {
|
override fun applyValue() {
|
||||||
val diff = value % step
|
val diff = value % step
|
||||||
if (diff < 0.5) {
|
if (diff < step * 0.5) {
|
||||||
value -= diff
|
value -= diff
|
||||||
} else {
|
} else {
|
||||||
value += (step - diff)
|
value += (step - diff)
|
||||||
|
Loading…
Reference in New Issue
Block a user