Skip to content

Commit

Permalink
Fix enable gameplay toggle on char, not clearing belly in Maker
Browse files Browse the repository at this point in the history
  • Loading branch information
thojmr committed Sep 3, 2021
1 parent 158e8b5 commit 7c2eb46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PregnancyPlus/PregnancyPlus.Core/GUI/PPGui.Maker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ internal static void MakerAPI_MakerBaseLoaded(object sender, RegisterSubCategori
sliders.Add(fatFoldHeight);


var clothOffsetVersion = e.AddControl(new MakerDropdown(inflationClothingOffsetVersionMaker, new string[2] {"V1", "V2 experimental"}, cat, 1, _pluginInstance));
var clothOffsetVersion = e.AddControl(new MakerDropdown(inflationClothingOffsetVersionMaker, new string[2] {"V1", "V2 (improved)"}, cat, 1, _pluginInstance));
clothOffsetVersion.BindToFunctionController<PregnancyPlusCharaController, int>(controller => controller.infConfig.clothingOffsetVersion, (controller, value) => {
var oldVal = controller.infConfig.clothingOffsetVersion;
controller.infConfig.clothingOffsetVersion = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@ public void MeshInflate(MeshInflateFlags meshInflateFlags, string callee)
if (!meshInflateFlags.NeedsToRun) return;

if (!AllowedToInflate()) return;//if outside studio/maker, make sure StoryMode is enabled first
if (!infConfig.GameplayEnabled) return;//Only if gameplay enabled
if (!infConfig.GameplayEnabled)
{
//Remove belly if gameplay disabled, and char has a belly
if (infConfig.inflationSize > 0 && md?.Keys.Count > 0)
{
CleanSlate();
}
return;
}

//Resets all stored vert values, so the script will have to recalculate all from base body
if (meshInflateFlags.freshStart) CleanSlate();
Expand Down

0 comments on commit 7c2eb46

Please sign in to comment.