Skip to content

Commit 493f9dd

Browse files
committed
Reverted some code formatting, since it is not needed anymore
1 parent 93ce5d0 commit 493f9dd

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

source/LottieToWinComp/Brushes.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,7 @@ static void ApplyCommonStrokeProperties(
254254
sprite.StrokeBrush = brush;
255255
}
256256

257-
public static CompositionBrush? TranslateShapeFill(
258-
LayerContext context,
259-
ShapeFill? shapeFill,
260-
CompositeOpacity opacity)
257+
public static CompositionBrush? TranslateShapeFill(LayerContext context, ShapeFill? shapeFill, CompositeOpacity opacity)
261258
{
262259
if (shapeFill is null)
263260
{
@@ -266,12 +263,9 @@ static void ApplyCommonStrokeProperties(
266263

267264
return shapeFill.FillKind switch
268265
{
269-
ShapeFill.ShapeFillKind.SolidColor =>
270-
TranslateSolidColorFill(context, (SolidColorFill)shapeFill, opacity),
271-
ShapeFill.ShapeFillKind.LinearGradient =>
272-
TranslateLinearGradient(context, (LinearGradientFill)shapeFill, opacity),
273-
ShapeFill.ShapeFillKind.RadialGradient =>
274-
TranslateRadialGradient(context, (RadialGradientFill)shapeFill, opacity),
266+
ShapeFill.ShapeFillKind.SolidColor => TranslateSolidColorFill(context, (SolidColorFill)shapeFill, opacity),
267+
ShapeFill.ShapeFillKind.LinearGradient => TranslateLinearGradient(context, (LinearGradientFill)shapeFill, opacity),
268+
ShapeFill.ShapeFillKind.RadialGradient => TranslateRadialGradient(context, (RadialGradientFill)shapeFill, opacity),
275269
_ => throw new InvalidOperationException(),
276270
};
277271
}

source/LottieToWinComp/Shapes.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ public static void TranslateAndApplyShapeContext(
3434
ShapeContext context,
3535
CompositionSpriteShape shape,
3636
bool reverseDirection) =>
37-
TranslateAndApplyShapeContextWithTrimOffset(
38-
context,
39-
shape,
40-
reverseDirection,
41-
trimOffsetDegrees: 0);
37+
TranslateAndApplyShapeContextWithTrimOffset(context, shape, reverseDirection, 0);
4238

4339
public static void TranslateAndApplyShapeContextWithTrimOffset(
4440
ShapeContext context,

0 commit comments

Comments
 (0)