Skip to content

Commit

Permalink
Fix for low poly
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathWeasel1337 committed Mar 1, 2019
1 parent efce852 commit ef22af1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion KK_UncensorSelector/KK_UncensorSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class KK_UncensorSelector : BaseUnityPlugin
public const string GUID = "com.deathweasel.bepinex.uncensorselector";
public const string PluginName = "Uncensor Selector";
public const string PluginNameInternal = "KK_UncensorSelector";
public const string Version = "2.6";
public const string Version = "2.6.1";
private const string UncensorKeyRandom = "Random";
internal static ChaControl CurrentCharacter;
internal static ChaFileControl CurrentChaFile;
Expand Down Expand Up @@ -206,6 +206,8 @@ private static void UpdateUncensor(ChaControl chaControl, UncensorData uncensor)
{
string OOBase = uncensor?.OOBase ?? Defaults.OOBase;
string Asset = uncensor?.Asset ?? (chaControl.sex == 0 ? Defaults.AssetMale : Defaults.AssetFemale);
if (chaControl.hiPoly == false)
Asset += "_low";

GameObject uncensorCopy = CommonLib.LoadAsset<GameObject>(OOBase, Asset, true);
foreach (var mesh in chaControl.gameObject.GetComponentsInChildren<SkinnedMeshRenderer>(true))
Expand Down

0 comments on commit ef22af1

Please sign in to comment.