mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 18:56:54 +08:00
Merge branch '3.6' into 3.7-beta
This commit is contained in:
commit
cdde8c65eb
Binary file not shown.
@ -188,14 +188,14 @@ package spine {
|
|||||||
lb = MathUtils.cosDeg(90 + shearY) * scaleY;
|
lb = MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
lc = MathUtils.sinDeg(shearX) * scaleX;
|
lc = MathUtils.sinDeg(shearX) * scaleX;
|
||||||
ld = MathUtils.sinDeg(90 + shearY) * scaleY;
|
ld = MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != TransformMode.noScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != TransformMode.noScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -173,14 +173,14 @@ void spBone_updateWorldTransformWith (spBone* self, float x, float y, float rota
|
|||||||
lb = COS_DEG(90 + shearY) * scaleY;
|
lb = COS_DEG(90 + shearY) * scaleY;
|
||||||
lc = SIN_DEG(shearX) * scaleX;
|
lc = SIN_DEG(shearX) * scaleX;
|
||||||
ld = SIN_DEG(90 + shearY) * scaleY;
|
ld = SIN_DEG(90 + shearY) * scaleY;
|
||||||
|
if (self->data->transformMode != SP_TRANSFORMMODE_NOSCALEORREFLECTION ? pa * pd - pb * pc < 0 : self->skeleton->flipX != self->skeleton->flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
CONST_CAST(float, self->a) = za * la + zb * lc;
|
CONST_CAST(float, self->a) = za * la + zb * lc;
|
||||||
CONST_CAST(float, self->b) = za * lb + zb * ld;
|
CONST_CAST(float, self->b) = za * lb + zb * ld;
|
||||||
CONST_CAST(float, self->c) = zc * la + zd * lc;
|
CONST_CAST(float, self->c) = zc * la + zd * lc;
|
||||||
CONST_CAST(float, self->d) = zc * lb + zd * ld;
|
CONST_CAST(float, self->d) = zc * lb + zd * ld;
|
||||||
if (self->data->transformMode != SP_TRANSFORMMODE_NOSCALEORREFLECTION ? pa * pd - pb * pc < 0 : self->skeleton->flipX != self->skeleton->flipY) {
|
|
||||||
CONST_CAST(float, self->b) = -self->b;
|
|
||||||
CONST_CAST(float, self->d) = -self->d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -246,14 +246,14 @@ namespace Spine {
|
|||||||
float lb = MathUtils.CosDeg(90 + shearY) * scaleY;
|
float lb = MathUtils.CosDeg(90 + shearY) * scaleY;
|
||||||
float lc = MathUtils.SinDeg(shearX) * scaleX;
|
float lc = MathUtils.SinDeg(shearX) * scaleX;
|
||||||
float ld = MathUtils.SinDeg(90 + shearY) * scaleY;
|
float ld = MathUtils.SinDeg(90 + shearY) * scaleY;
|
||||||
|
if (data.transformMode != TransformMode.NoScaleOrReflection? pa * pd - pb* pc< 0 : skeleton.flipX != skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
a = za * la + zb * lc;
|
a = za * la + zb * lc;
|
||||||
b = za * lb + zb * ld;
|
b = za * lb + zb * ld;
|
||||||
c = zc * la + zd * lc;
|
c = zc * la + zd * lc;
|
||||||
d = zc * lb + zd * ld;
|
d = zc * lb + zd * ld;
|
||||||
if (data.transformMode != TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : skeleton.flipX != skeleton.flipY) {
|
|
||||||
b = -b;
|
|
||||||
d = -d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -202,14 +202,14 @@ public class Bone implements Updatable {
|
|||||||
float lb = cosDeg(90 + shearY) * scaleY;
|
float lb = cosDeg(90 + shearY) * scaleY;
|
||||||
float lc = sinDeg(shearX) * scaleX;
|
float lc = sinDeg(shearX) * scaleX;
|
||||||
float ld = sinDeg(90 + shearY) * scaleY;
|
float ld = sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (data.transformMode != TransformMode.noScaleOrReflection ? pa * pd - pb * pc < 0 : skeleton.flipX != skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
a = za * la + zb * lc;
|
a = za * la + zb * lc;
|
||||||
b = za * lb + zb * ld;
|
b = za * lb + zb * ld;
|
||||||
c = zc * la + zd * lc;
|
c = zc * la + zd * lc;
|
||||||
d = zc * lb + zd * ld;
|
d = zc * lb + zd * ld;
|
||||||
if (data.transformMode != TransformMode.noScaleOrReflection ? pa * pd - pb * pc < 0 : skeleton.flipX != skeleton.flipY) {
|
|
||||||
b = -b;
|
|
||||||
d = -d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -190,16 +190,16 @@ function Bone:updateWorldTransformWith (x, y, rotation, scaleX, scaleY, shearX,
|
|||||||
local lb = math_cos(math_rad(90 + shearY)) * scaleY;
|
local lb = math_cos(math_rad(90 + shearY)) * scaleY;
|
||||||
local lc = math_sin(math_rad(shearX)) * scaleX;
|
local lc = math_sin(math_rad(shearX)) * scaleX;
|
||||||
local ld = math_sin(90 + shearY) * scaleY;
|
local ld = math_sin(90 + shearY) * scaleY;
|
||||||
|
local flip = self.skeleton.flipX ~= self.skeleton.flipY
|
||||||
|
if transformMode ~= TransformMode.noScaleOrReflection then flip = pa * pd - pb * pc < 0 end
|
||||||
|
if flip then
|
||||||
|
zb = -zb
|
||||||
|
zd = -zd
|
||||||
|
end
|
||||||
self.a = za * la + zb * lc
|
self.a = za * la + zb * lc
|
||||||
self.b = za * lb + zb * ld
|
self.b = za * lb + zb * ld
|
||||||
self.c = zc * la + zd * lc
|
self.c = zc * la + zd * lc
|
||||||
self.d = zc * lb + zd * ld
|
self.d = zc * lb + zd * ld
|
||||||
local flip = self.skeleton.flipX ~= self.skeleton.flipY
|
|
||||||
if transformMode ~= TransformMode.noScaleOrReflection then flip = pa * pd - pb * pc < 0 end
|
|
||||||
if flip then
|
|
||||||
self.b = -self.b
|
|
||||||
self.d = -self.d
|
|
||||||
end
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -2200,14 +2200,14 @@ var spine;
|
|||||||
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
||||||
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -2200,14 +2200,14 @@ var spine;
|
|||||||
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
||||||
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -2200,14 +2200,14 @@ var spine;
|
|||||||
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
||||||
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -2200,14 +2200,14 @@ var spine;
|
|||||||
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
||||||
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -2200,14 +2200,14 @@ var spine;
|
|||||||
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
||||||
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -2200,14 +2200,14 @@ var spine;
|
|||||||
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
var lc = spine.MathUtils.sinDeg(shearX) * scaleX;
|
||||||
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != spine.TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -169,14 +169,14 @@ module spine {
|
|||||||
let lb = MathUtils.cosDeg(90 + shearY) * scaleY;
|
let lb = MathUtils.cosDeg(90 + shearY) * scaleY;
|
||||||
let lc = MathUtils.sinDeg(shearX) * scaleX;
|
let lc = MathUtils.sinDeg(shearX) * scaleX;
|
||||||
let ld = MathUtils.sinDeg(90 + shearY) * scaleY;
|
let ld = MathUtils.sinDeg(90 + shearY) * scaleY;
|
||||||
|
if (this.data.transformMode != TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
||||||
|
zb = -zb;
|
||||||
|
zd = -zd;
|
||||||
|
}
|
||||||
this.a = za * la + zb * lc;
|
this.a = za * la + zb * lc;
|
||||||
this.b = za * lb + zb * ld;
|
this.b = za * lb + zb * ld;
|
||||||
this.c = zc * la + zd * lc;
|
this.c = zc * la + zd * lc;
|
||||||
this.d = zc * lb + zd * ld;
|
this.d = zc * lb + zd * ld;
|
||||||
if (this.data.transformMode != TransformMode.NoScaleOrReflection ? pa * pd - pb * pc < 0 : this.skeleton.flipX != this.skeleton.flipY) {
|
|
||||||
this.b = -this.b;
|
|
||||||
this.d = -this.d;
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user