mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[godot] Closes #2232, do not render slots attached to inactive bones.
This commit is contained in:
parent
77100eaca3
commit
c14b00d1c4
@ -542,6 +542,10 @@ void SpineSprite::update_meshes(Ref<SpineSkeleton> skeleton_ref) {
|
|||||||
skeleton_clipper->clipEnd(*slot);
|
skeleton_clipper->clipEnd(*slot);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!slot->getBone().isActive()) {
|
||||||
|
skeleton_clipper->clipEnd(*slot);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
spine::Color skeleton_color = skeleton->getColor();
|
spine::Color skeleton_color = skeleton->getColor();
|
||||||
spine::Color slot_color = slot->getColor();
|
spine::Color slot_color = slot->getColor();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user