musing about config/savestate loading
This commit is contained in:
@@ -46,7 +46,7 @@ pub fn load_obj(obj_path: &str) -> Result<RawMesh, String> {
|
||||
let (models, materials) = match tobj::load_obj(obj_path, true) {
|
||||
Ok((a, b)) => {Ok((a, b))}
|
||||
Err(load_error) => {Err(load_error.to_string())}
|
||||
}.unwrap();
|
||||
}?;
|
||||
|
||||
// println!("# of models: {}", models.len());
|
||||
// println!("# of materials: {}", materials.len());
|
||||
@@ -78,8 +78,11 @@ pub fn load_obj(obj_path: &str) -> Result<RawMesh, String> {
|
||||
if mesh.texcoords.len() % 2 != 0 {
|
||||
return Err(format!("position array not % 3 : {}", mesh.positions.len()))
|
||||
}
|
||||
if mesh.normals.is_empty() {
|
||||
return Err(format!("It would be best if this had normals"))
|
||||
}
|
||||
if mesh.texcoords.is_empty() {
|
||||
log::info!("Mesh texture coordinates empty")
|
||||
log::info!("\tMesh texture coordinates empty")
|
||||
}
|
||||
|
||||
for v in 0..mesh.positions.len() / 3 {
|
||||
|
||||
Reference in New Issue
Block a user