Skip to content

Commit

Permalink
Fixed BP5 incompatibility by removing bone weight constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
thojmr committed Apr 13, 2022
1 parent ee2d509 commit 6843acc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ namespace KK_PregnancyPlus
public partial class PregnancyPlusCharaController: CharaCustomFunctionController
{

const float minBoneWeight = 0.02f;
//This limits the area around the belly where we want to affect any verts
//This value used to be 0.02f, but in order to make it compatible with BP5 I reduced it to 0f
const float minBoneWeight = 0f;


/// <summary>
Expand Down Expand Up @@ -82,7 +84,7 @@ await Task.Run(() =>
//For each bone weight
for (int j = 0; j < 4; j++)
{
//If it has a weight, and the bone is a belly bone. Weight goes (0-1f) Ignore 0 and maybe filter below 0.1 as well
//If it has a weight, and the bone is a belly bone. Weight goes (0-1f)
//Include all if debug = true
if ((boneWeights[j] > minBoneWeight && bellyBoneIndexes.Contains(boneIndicies[j]) || PregnancyPlusPlugin.MakeBalloon.Value))
{
Expand Down

0 comments on commit 6843acc

Please sign in to comment.