Merge efab42d1b5d47ab847f45e5c52e8c18c72828482 into 99ebb13edf532a307dc3df101a8aa43beb2b2666

This commit is contained in:
Luke Ingram 2026-03-24 15:52:32 -04:00 committed by GitHub
commit cd33152885
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,14 +180,14 @@ void TransformConstraint::applyAbsoluteWorld() {
bone._worldY += (ty - bone._worldY) * mixY;
}
if (mixScaleX > 0) {
if (mixScaleX != 0) {
float s = MathUtil::sqrt(bone._a * bone._a + bone._c * bone._c);
if (s != 0) s = (s + (MathUtil::sqrt(ta * ta + tc * tc) - s + _data._offsetScaleX) * mixScaleX) / s;
bone._a *= s;
bone._c *= s;
}
if (mixScaleY > 0) {
if (mixScaleY != 0) {
float s = MathUtil::sqrt(bone._b * bone._b + bone._d * bone._d);
if (s != 0) s = (s + (MathUtil::sqrt(tb * tb + td * td) - s + _data._offsetScaleY) * mixScaleY) / s;
bone._b *= s;