mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[libgdx] Don't apply slider if its bone is inactive.
This commit is contained in:
parent
7a48eb9f3a
commit
cf7b5f1567
@ -62,7 +62,8 @@ public class Slider extends Constraint<Slider, SliderData, SliderPose> {
|
||||
if (pose.mix == 0) return;
|
||||
|
||||
Animation animation = data.animation;
|
||||
if (bone != null && bone.active) {
|
||||
if (bone != null) {
|
||||
if (!bone.active) return;
|
||||
pose.time = (data.property.value(bone.applied, data.local, offsets) - data.property.offset) * data.scale;
|
||||
if (data.loop)
|
||||
pose.time = animation.duration + (pose.time % animation.duration);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user