Skip to content

Commit

Permalink
Fixed not working in some game installs
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Dec 15, 2020
1 parent a022eec commit f5d4313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion KK_Bulge/BulgePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using KKAPI.Maker.UI;
using KKAPI.Studio;
using KKAPI.Studio.UI;
using StrayTech;
using UniRx;
using UnityEngine;

Expand Down Expand Up @@ -142,7 +143,9 @@ public BulgeBoneEffect(BulgeController ctrl)
{
if (ctrl == null) throw new ArgumentNullException(nameof(ctrl));
_ctrl = ctrl;
_son = _ctrl.ChaControl.GetReferenceInfo(ChaReference.RefObjKey.S_Son);
// BodyTop/p_cf_body_00/cf_o_root/n_body/n_dankon
// BodyTop/p_cf_body_00 can be disabled in kkp in some cases, somehow, so need a full scan
_son = _ctrl.transform.FindChildDeep("n_dankon").gameObject;
}

private bool GetBulgeVisible()
Expand Down

0 comments on commit f5d4313

Please sign in to comment.