Skip to content

Commit

Permalink
Merge branch '3.6' into 3.7-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Dec 14, 2017
2 parents 12162b7 + 33cd0a6 commit e8fa57e
Show file tree
Hide file tree
Showing 16 changed files with 669 additions and 655 deletions.
2 changes: 1 addition & 1 deletion spine-c/spine-c/src/spine/AnimationState.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void _spEventQueue_drain (_spEventQueue* self) {
self->drainDisabled = 0;
}

// These two functions are needed in the UE4 runtime, see #1037
/* These two functions are needed in the UE4 runtime, see #1037 */
void _spAnimationState_enableQueue(spAnimationState* self) {
_spAnimationState* internal = SUB_CAST(_spAnimationState, self);
internal->queue->drainDisabled = 0;
Expand Down
6 changes: 3 additions & 3 deletions spine-c/spine-c/src/spine/SkeletonJson.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
data->target = spSkeletonData_findBone(skeletonData, targetName);
if (!data->target) {
spSkeletonData_dispose(skeletonData);
_spSkeletonJson_setError(self, root, "Target bone not found: ", boneMap->name);
_spSkeletonJson_setError(self, root, "Target bone not found: ", targetName);
return 0;
}

Expand Down Expand Up @@ -771,7 +771,7 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
data->target = spSkeletonData_findBone(skeletonData, name);
if (!data->target) {
spSkeletonData_dispose(skeletonData);
_spSkeletonJson_setError(self, root, "Target bone not found: ", boneMap->name);
_spSkeletonJson_setError(self, root, "Target bone not found: ", name);
return 0;
}

Expand Down Expand Up @@ -822,7 +822,7 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
data->target = spSkeletonData_findSlot(skeletonData, name);
if (!data->target) {
spSkeletonData_dispose(skeletonData);
_spSkeletonJson_setError(self, root, "Target slot not found: ", boneMap->name);
_spSkeletonJson_setError(self, root, "Target slot not found: ", name);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion spine-cocos2dx/src/spine/SkeletonAnimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SkeletonAnimation: public SkeletonRenderer {
return SkeletonAnimation::createWithJsonFile(skeletonJsonFile, atlas, scale);
}
// Use createWithJsonFile instead
CC_DEPRECATED_ATTRIBUTE static SkeletonAnimation* createWithile (const std::string& skeletonJsonFile, const std::string& atlasFile, float scale = 1)
CC_DEPRECATED_ATTRIBUTE static SkeletonAnimation* createWithFile (const std::string& skeletonJsonFile, const std::string& atlasFile, float scale = 1)
{
return SkeletonAnimation::createWithJsonFile(skeletonJsonFile, atlasFile, scale);
}
Expand Down
13 changes: 4 additions & 9 deletions spine-csharp/src/AnimationState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public AnimationState (AnimationStateData data) {
trackEntryPool
);
}

/// <summary>
/// Increments the track entry times, setting queued animations as current if needed</summary>
/// <param name="delta">delta time</param>
Expand Down Expand Up @@ -259,17 +259,12 @@ private float ApplyMixingFrom (TrackEntry to, Skeleton skeleton, MixPose current
break;
case Dip:
pose = MixPose.Setup;
alpha = mix == 1 ? 0 : alphaDip;
alpha = alphaDip;
break;
default:
pose = MixPose.Setup;
if (mix == 1) {
alpha = 0;
} else {
alpha = alphaDip;
var dipMix = timelineDipMix[i];
alpha *= Math.Max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
}
TrackEntry dipMix = timelineDipMix[i];
alpha = alphaDip * Math.Max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
break;
}
from.totalAlpha += alpha;
Expand Down
4 changes: 2 additions & 2 deletions spine-ts/build/spine-all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,8 @@ declare module spine.webgl {
private shapes;
private shapesShader;
private activeRenderer;
private skeletonRenderer;
private skeletonDebugRenderer;
skeletonRenderer: SkeletonRenderer;
skeletonDebugRenderer: SkeletonDebugRenderer;
private QUAD;
private QUAD_TRIANGLES;
private WHITE;
Expand Down
4 changes: 2 additions & 2 deletions spine-ts/build/spine-webgl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,8 @@ declare module spine.webgl {
private shapes;
private shapesShader;
private activeRenderer;
private skeletonRenderer;
private skeletonDebugRenderer;
skeletonRenderer: SkeletonRenderer;
skeletonDebugRenderer: SkeletonDebugRenderer;
private QUAD;
private QUAD_TRIANGLES;
private WHITE;
Expand Down
4 changes: 2 additions & 2 deletions spine-ts/build/spine-widget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,8 @@ declare module spine.webgl {
private shapes;
private shapesShader;
private activeRenderer;
private skeletonRenderer;
private skeletonDebugRenderer;
skeletonRenderer: SkeletonRenderer;
skeletonDebugRenderer: SkeletonDebugRenderer;
private QUAD;
private QUAD_TRIANGLES;
private WHITE;
Expand Down
4 changes: 2 additions & 2 deletions spine-ts/webgl/src/SceneRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ module spine.webgl {
private shapes: ShapeRenderer;
private shapesShader: Shader;
private activeRenderer: PolygonBatcher | ShapeRenderer | SkeletonDebugRenderer = null;
private skeletonRenderer: SkeletonRenderer;
private skeletonDebugRenderer: SkeletonDebugRenderer;
skeletonRenderer: SkeletonRenderer;
skeletonDebugRenderer: SkeletonDebugRenderer;
private QUAD = [
0, 0, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 0, 0,
Expand Down
Loading

0 comments on commit e8fa57e

Please sign in to comment.