Skip to content

Commit

Permalink
Update martin/src/sprites/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Elsinga <[email protected]>
  • Loading branch information
nyurik and CommanderStorm authored Oct 21, 2024
1 parent 988c22d commit 8ed9be0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions martin/src/sprites/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,11 @@ async fn parse_sprite(
.map_err(|e| SpriteParsingError(e, path.clone()))?;

let sprite = if as_sdf {
Sprite::new_sdf(tree, pixel_ratio).ok_or_else(|| SpriteInstError(path.clone()))?
Sprite::new_sdf(tree, pixel_ratio)
} else {
Sprite::new(tree, pixel_ratio).ok_or_else(|| SpriteInstError(path.clone()))?
Sprite::new(tree, pixel_ratio)
};
let sprite = sprite.ok_or_else(|| SpriteInstError(path.clone()))?;

Ok((name, sprite))
}
Expand Down

0 comments on commit 8ed9be0

Please sign in to comment.