mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[TS] WebKit 602 disappearing graphics bug (#1093)
* Added a fix for the iOS 10 issue described at http://esotericsoftware.com/forum/iOS-10-disappearing-graphics-10109 * Renamed uselessFunction and updated documentation
This commit is contained in:
parent
0a61f34c61
commit
c28bbebf80
@ -172,8 +172,11 @@ module spine {
|
|||||||
let pose = timelineData[ii] >= AnimationState.FIRST ? MixPose.setup : currentPose;
|
let pose = timelineData[ii] >= AnimationState.FIRST ? MixPose.setup : currentPose;
|
||||||
if (timeline instanceof RotateTimeline) {
|
if (timeline instanceof RotateTimeline) {
|
||||||
this.applyRotateTimeline(timeline, skeleton, animationTime, mix, pose, timelinesRotation, ii << 1, firstFrame);
|
this.applyRotateTimeline(timeline, skeleton, animationTime, mix, pose, timelinesRotation, ii << 1, firstFrame);
|
||||||
} else
|
} else {
|
||||||
|
// This fixes the WebKit 602 specific issue described at http://esotericsoftware.com/forum/iOS-10-disappearing-graphics-10109
|
||||||
|
Utils.webkit602BugfixHelper(mix, pose);
|
||||||
timeline.apply(skeleton, animationLast, animationTime, events, mix, pose, MixDirection.in);
|
timeline.apply(skeleton, animationLast, animationTime, events, mix, pose, MixDirection.in);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.queueEvents(current, animationTime);
|
this.queueEvents(current, animationTime);
|
||||||
@ -242,6 +245,8 @@ module spine {
|
|||||||
if (timeline instanceof RotateTimeline)
|
if (timeline instanceof RotateTimeline)
|
||||||
this.applyRotateTimeline(timeline, skeleton, animationTime, alpha, pose, timelinesRotation, i << 1, firstFrame);
|
this.applyRotateTimeline(timeline, skeleton, animationTime, alpha, pose, timelinesRotation, i << 1, firstFrame);
|
||||||
else {
|
else {
|
||||||
|
// This fixes the WebKit 602 specific issue described at http://esotericsoftware.com/forum/iOS-10-disappearing-graphics-10109
|
||||||
|
Utils.webkit602BugfixHelper(alpha, pose);
|
||||||
timeline.apply(skeleton, animationLast, animationTime, events, alpha, pose, MixDirection.out);
|
timeline.apply(skeleton, animationLast, animationTime, events, alpha, pose, MixDirection.out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,6 +259,11 @@ module spine {
|
|||||||
static toSinglePrecision (value: number) {
|
static toSinglePrecision (value: number) {
|
||||||
return Utils.SUPPORTS_TYPED_ARRAYS ? Math.fround(value) : value;
|
return Utils.SUPPORTS_TYPED_ARRAYS ? Math.fround(value) : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This function is used to fix WebKit 602 specific issue described at http://esotericsoftware.com/forum/iOS-10-disappearing-graphics-10109
|
||||||
|
static webkit602BugfixHelper (alpha: number, pose: MixPose) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DebugUtils {
|
export class DebugUtils {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user