1
Fork 0
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:
Joshua Goins 2024-05-25 23:26:11 -04:00
parent fdf07fd255
commit 91560de96b

View file

@ -753,8 +753,7 @@ impl MDL {
let old_vertex =
vertices[indices[shape_value.base_indices_index as usize] as usize];
let new_vertex = vertices[(shape_value.replacing_vertex_index
as usize)
.saturating_sub(model.meshes[j as usize].start_index as usize)];
as usize)];
let vertex = &mut morphed_vertices
[indices[shape_value.base_indices_index as usize] as usize];