mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-23 13:17:44 +00:00
Fix shape values not reading correctly
This commit is contained in:
parent
fdf07fd255
commit
91560de96b
1 changed files with 1 additions and 2 deletions
|
@ -753,8 +753,7 @@ impl MDL {
|
||||||
let old_vertex =
|
let old_vertex =
|
||||||
vertices[indices[shape_value.base_indices_index as usize] as usize];
|
vertices[indices[shape_value.base_indices_index as usize] as usize];
|
||||||
let new_vertex = vertices[(shape_value.replacing_vertex_index
|
let new_vertex = vertices[(shape_value.replacing_vertex_index
|
||||||
as usize)
|
as usize)];
|
||||||
.saturating_sub(model.meshes[j as usize].start_index as usize)];
|
|
||||||
let vertex = &mut morphed_vertices
|
let vertex = &mut morphed_vertices
|
||||||
[indices[shape_value.base_indices_index as usize] as usize];
|
[indices[shape_value.base_indices_index as usize] as usize];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue