mirror of
https://github.com/redstrate/Physis.git
synced 2025-05-01 16:37:44 +00:00
Fix mtrl unwrap due to accidental commit
This commit is contained in:
parent
ec04c13fbd
commit
237dd27bd2
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ pub struct Material {
|
|||
impl Material {
|
||||
pub fn from_existing(buffer: ByteSpan) -> Option<Material> {
|
||||
let mut cursor = Cursor::new(buffer);
|
||||
let mat_data = MaterialData::read(&mut cursor).unwrap();
|
||||
let mat_data = MaterialData::read(&mut cursor).ok()?;
|
||||
|
||||
let mut texture_paths = vec![];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue