1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-05-01 08:27:45 +00:00

Fix mtrl unwrap due to accidental commit

This commit is contained in:
Joshua Goins 2024-06-29 09:33:48 -04:00
parent ec04c13fbd
commit 237dd27bd2

View file

@ -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![];