forked from StrafesNET/strafe-client
unnecessary cast
This commit is contained in:
parent
5854128164
commit
8e95fe484a
@ -172,7 +172,7 @@ fn add_obj(device:&wgpu::Device,modeldatas:& mut Vec<ModelData>,source:&[u8]){
|
|||||||
for &index in &[0, end_index - 1, end_index] {
|
for &index in &[0, end_index - 1, end_index] {
|
||||||
let vert = poly.0[index];
|
let vert = poly.0[index];
|
||||||
if let Some(&i)=vertex_index.get(&vert){
|
if let Some(&i)=vertex_index.get(&vert){
|
||||||
indices.push(i as u16);
|
indices.push(i);
|
||||||
}else{
|
}else{
|
||||||
let i=vertices.len() as u16;
|
let i=vertices.len() as u16;
|
||||||
vertices.push(Vertex {
|
vertices.push(Vertex {
|
||||||
|
Loading…
Reference in New Issue
Block a user