Skip to content

Commit

Permalink
Updates code to use a general purpose engine for standard base64
Browse files Browse the repository at this point in the history
  • Loading branch information
mnmaita committed Dec 2, 2023
1 parent 9a716b9 commit ed048ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_gltf/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ impl<'a> DataUri<'a> {

fn decode(&self) -> Result<Vec<u8>, base64::DecodeError> {
if self.base64 {
base64::decode(self.data)
base64::Engine::decode(&base64::engine::general_purpose::STANDARD_NO_PAD, self.data)
} else {
Ok(self.data.as_bytes().to_owned())
}
Expand Down

0 comments on commit ed048ad

Please sign in to comment.