Skip to content

Commit 6a7770b

Browse files
committed
Fix step export logic error
1 parent 977ea8f commit 6a7770b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Runtime/Scripts/SceneExporter/ExporterAnimation.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,11 +1423,13 @@ private bool BakePropertyAnimation(PropertyCurve prop, float length, float bakin
14231423
var allConstant = true;
14241424
for (int i = 0; i < keyframes.Length; i++)
14251425
{
1426+
if (!allConstant) break;
14261427
var kf = keyframes[i];
14271428
for (var k = 0; k < kf.Length; k++)
1428-
allConstant |= float.IsInfinity(kf[k].inTangent);
1429-
1430-
if (!allConstant) break;
1429+
{
1430+
if (!allConstant) break;
1431+
allConstant &= float.IsInfinity(kf[k].inTangent);
1432+
}
14311433
}
14321434

14331435
if (allConstant)

0 commit comments

Comments
 (0)