From e26c70221ea5bf5e59917874cefa20ce8239623a Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 29 Jan 2024 17:18:13 -0500 Subject: [PATCH] Oops, half4 positions should not be written as single4 --- src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.rs b/src/model.rs index e7fa17a..c736c77 100755 --- a/src/model.rs +++ b/src/model.rs @@ -672,7 +672,7 @@ impl MDL { VertexUsage::Position => { match element.vertex_type { VertexType::Half4 => { - MDL::write_single4(&mut cursor, &MDL::pad_slice(&vert.position, 1.0)).ok()?; + MDL::write_half4(&mut cursor, &MDL::pad_slice(&vert.position, 1.0)).ok()?; } VertexType::Single3 => { MDL::write_single3(&mut cursor, &vert.position).ok()?;