mirror of
https://github.com/redstrate/Physis.git
synced 2025-06-08 15:47:45 +00:00
Oops, remove accidental unwrap commit in Texture
This commit is contained in:
parent
7aeb217e2e
commit
79e6f20d86
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl Texture {
|
||||||
/// Reads an existing TEX file
|
/// Reads an existing TEX file
|
||||||
pub fn from_existing(buffer: ByteSpan) -> Option<Texture> {
|
pub fn from_existing(buffer: ByteSpan) -> Option<Texture> {
|
||||||
let mut cursor = Cursor::new(buffer);
|
let mut cursor = Cursor::new(buffer);
|
||||||
let header = TexHeader::read(&mut cursor).unwrap();
|
let header = TexHeader::read(&mut cursor).ok()?;
|
||||||
|
|
||||||
cursor
|
cursor
|
||||||
.seek(SeekFrom::Start(std::mem::size_of::<TexHeader>() as u64))
|
.seek(SeekFrom::Start(std::mem::size_of::<TexHeader>() as u64))
|
||||||
|
|
Loading…
Add table
Reference in a new issue