Skip to content

Commit 8512a8d

Browse files
committed
Update AnimationEditor.cs
1 parent 3122996 commit 8512a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WadTool/AnimationEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private void UpdateTransform(int meshIndex, Vector3 newPos, RotationStrategy rot
253253
float bias = (currentStep <= midFrame) ? (reverse ? 1.0f : currentStep / midFrame) : (frameCount - currentStep) / (frameCount - midFrame);
254254

255255
// Single-pass smoothstep doesn't look organic on fast animations, hence we're using 2-pass smootherstep here.
256-
float weight = smooth ? (float)MathC.SmoothStep(0, 1, MathC.SmoothStep(0, 1, bias)) : bias;
256+
float weight = smooth ? (float)MathC.SmoothStep(0, 1, MathC.SmoothStep(0, 1, bias)) : bias;
257257

258258
var translation = _backupPos[index] + deltaPos;
259259

0 commit comments

Comments
 (0)