Skip to content

Commit

Permalink
Fixed an issue breaking sliders in KKS Maker
Browse files Browse the repository at this point in the history
  • Loading branch information
thojmr committed Apr 10, 2022
1 parent f8f2809 commit 37ef060
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ internal async Task<bool> GetFilteredVerticieIndexes(SkinnedMeshRenderer smr, st
//Put threadpool work inside task and await the results
await Task.Run(() =>
{
//In KKS the mesh data key is sometime reset after maker load, so set it again
var hasValue = md.TryGetValue(renderKey, out var _meshData);
if (!hasValue) md[renderKey] = new MeshData(verticies.Length);
//Spread work across multiple threads
md[renderKey].bellyVerticieIndexes = Threading.RunParallel(sharedMesh.boneWeights, (bw, i) =>
{
Expand Down

0 comments on commit 37ef060

Please sign in to comment.