mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-22 04:37:46 +00:00
Fix the shapes crashing on certain models
This is a hack to get things working for now
This commit is contained in:
parent
808b383949
commit
1823b1f084
1 changed files with 1 additions and 2 deletions
|
@ -752,8 +752,7 @@ impl MDL {
|
|||
for shape_value in shape_values {
|
||||
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
|
||||
- model.meshes[j as usize].start_index as usize];
|
||||
let new_vertex = vertices[(shape_value.replacing_vertex_index as usize).saturating_sub(model.meshes[j as usize].start_index as usize)];
|
||||
let vertex = &mut morphed_vertices
|
||||
[indices[shape_value.base_indices_index as usize] as usize];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue