Prechádzať zdrojové kódy

remove debug printing of vertices

deltanedas 3 rokov pred
rodič
commit
39fd458c34
3 zmenil súbory, kde vykonal 3 pridanie a 5 odobranie
  1. 1 1
      Cargo.toml
  2. 1 1
      chair_exporter.py
  3. 1 3
      src/io.rs

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "chair"
-version = "0.1.2"
+version = "0.1.3"
 edition = "2021"
 description = "An efficient binary mesh format which is both small and extremely fast to read."
 readme = "README.md"

+ 1 - 1
chair_exporter.py

@@ -7,7 +7,7 @@ bl_info = {
 	"blender": (3, 0, 0),
 	"location": "File > Import-Export > Chair Mesh (.chr)",
 	# Same as the crate version
-	"version": (0, 1, 2),
+	"version": (0, 1, 3),
 	"category": "Import-Export"
 }
 

+ 1 - 3
src/io.rs

@@ -97,8 +97,7 @@ impl<'a, A: Atlas> MeshReader<'a, A> {
 
 	/// Extract vertices and indices from file contents
 	/// If using wgpu you can use `create` to also upload it to the gpu
-	// TODO: remove debug
-	pub fn read<V: Vertex + std::fmt::Debug>(&self, bytes: &[u8]) -> Result<(Vec<V>, Vec<Index>)> {
+	pub fn read<V: Vertex>(&self, bytes: &[u8]) -> Result<(Vec<V>, Vec<Index>)> {
 		let mut bytes = Cursor::new(bytes);
 		let bytes = &mut bytes;
 		let mut header = [0; 5];
@@ -289,7 +288,6 @@ impl<'a, A: Atlas> MeshReader<'a, A> {
 					} else {
 						([0; 4], [0.0; 4]
 					};*/
-					trace!("Read vertex {pos:?}");
 					Ok(V::new(pos, col, normals, uvs, /*bones, weights*/))
 				}).collect::<Result<Vec<_>>>()
 			})