Ver Fonte

move Index from mesh to vertex

deltanedas há 3 anos atrás
pai
commit
6259cd5f85
4 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      Cargo.toml
  2. 1 1
      chair_exporter.py
  3. 0 2
      src/mesh.rs
  4. 2 0
      src/vertex.rs

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "chair"
-version = "0.2.0"
+version = "0.2.1"
 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, 2.0),
+	"version": (0, 2, 1),
 	"category": "Import-Export"
 }
 

+ 0 - 2
src/mesh.rs

@@ -10,8 +10,6 @@ use wgpu::{
 	*
 };
 
-pub type Index = u32;
-
 pub const INDEX_FORMAT: IndexFormat = IndexFormat::Uint32;
 
 pub struct Mesh {

+ 2 - 0
src/vertex.rs

@@ -14,6 +14,8 @@ pub use bytemuck::{Pod, Zeroable};
 #[cfg(feature = "mesh")]
 use wgpu::*;
 
+pub type Index = u32;
+
 /// The vertex trait implemented by vertex types
 /// # Example
 /// ```