Skip to content

Commit

Permalink
Fixing ending issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gents83 committed Jan 27, 2024
1 parent ec7c6e1 commit d7516a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/graphics/src/common/global_buffers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl GlobalBuffers {
let (vertex_offset, indices_offset, attributes_offset) =
self.add_vertex_data(mesh_id, mesh_index as _, mesh_data);
let (blas_index, meshlet_offset) =
self.extract_meshlets(mesh_data, mesh_id, mesh_index as _, indices_offset, 6);
self.extract_meshlets(mesh_data, mesh_id, mesh_index as _, indices_offset, 0);

{
let mut meshes = self.meshes.write().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/plugins/binarizer/src/compilers/gltf_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ impl GltfCompiler {
let groups = group_meshlets(&meshlets_info);
level += 1;
generate_meshlets_for_level(level, &groups, &mut mesh_data);
is_meshlet_tree_created = groups.len() == 1 && groups[0].len() == 1;
is_meshlet_tree_created = groups.len() == 1;
}

mesh_data.material = material_path.to_path_buf();
Expand Down

0 comments on commit d7516a5

Please sign in to comment.