[libgdx] Don't apply slider if its bone is inactive.

This commit is contained in:
Nathan Sweet 2025-05-06 22:00:43 -04:00
parent 7a48eb9f3a
commit cf7b5f1567

View File

@ -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);