mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-03 14:19:09 +08:00
Bone timelines do nothing if their bone is not active.
This commit is contained in:
parent
7ee57dc46f
commit
b3c2170ed2
@ -349,6 +349,7 @@ public class Animation {
|
|||||||
MixDirection direction) {
|
MixDirection direction) {
|
||||||
|
|
||||||
Bone bone = skeleton.bones.get(boneIndex);
|
Bone bone = skeleton.bones.get(boneIndex);
|
||||||
|
if (!bone.visible) return;
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) { // Time is before first frame.
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
switch (blend) {
|
switch (blend) {
|
||||||
@ -446,6 +447,7 @@ public class Animation {
|
|||||||
MixDirection direction) {
|
MixDirection direction) {
|
||||||
|
|
||||||
Bone bone = skeleton.bones.get(boneIndex);
|
Bone bone = skeleton.bones.get(boneIndex);
|
||||||
|
if (!bone.visible) return;
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) { // Time is before first frame.
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
switch (blend) {
|
switch (blend) {
|
||||||
@ -507,6 +509,7 @@ public class Animation {
|
|||||||
MixDirection direction) {
|
MixDirection direction) {
|
||||||
|
|
||||||
Bone bone = skeleton.bones.get(boneIndex);
|
Bone bone = skeleton.bones.get(boneIndex);
|
||||||
|
if (!bone.visible) return;
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) { // Time is before first frame.
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
switch (blend) {
|
switch (blend) {
|
||||||
@ -609,6 +612,7 @@ public class Animation {
|
|||||||
MixDirection direction) {
|
MixDirection direction) {
|
||||||
|
|
||||||
Bone bone = skeleton.bones.get(boneIndex);
|
Bone bone = skeleton.bones.get(boneIndex);
|
||||||
|
if (!bone.visible) return;
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) { // Time is before first frame.
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
switch (blend) {
|
switch (blend) {
|
||||||
|
|||||||
@ -348,6 +348,7 @@ public class AnimationState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Bone bone = skeleton.bones.get(timeline.boneIndex);
|
Bone bone = skeleton.bones.get(timeline.boneIndex);
|
||||||
|
if (!bone.visible) return;
|
||||||
float[] frames = timeline.frames;
|
float[] frames = timeline.frames;
|
||||||
float r1, r2;
|
float r1, r2;
|
||||||
if (time < frames[0]) { // Time is before first frame.
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user