From 849dec3ddcba934a9975079d3aa31f1c51e4c981 Mon Sep 17 00:00:00 2001 From: Sauceke <76826783+Sauceke@users.noreply.github.com> Date: Mon, 26 Sep 2022 19:11:11 +0300 Subject: [PATCH] [KK*] Make bone paths unambiguous in Studio plugin --- LoveMachine.KK/StudioGame.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LoveMachine.KK/StudioGame.cs b/LoveMachine.KK/StudioGame.cs index 47eddf06..2994b2c0 100644 --- a/LoveMachine.KK/StudioGame.cs +++ b/LoveMachine.KK/StudioGame.cs @@ -7,6 +7,9 @@ namespace LoveMachine.KK { internal sealed class StudioGame : AbstractKoikatsuGame { + private const string balls = "chaM_001/BodyTop/p_cf_body_bone/cf_j_root/cf_n_height/" + + "cf_j_hips/cf_j_waist01/cf_j_waist02/cf_d_kokan/cm_J_dan_top/cm_J_dan_f_top/" + + "cm_J_dan_f_L/k_f_tamaL_00"; private Traverse isPlaying; private Traverse duration; private Traverse playbackTime; @@ -23,9 +26,9 @@ internal sealed class StudioGame : AbstractKoikatsuGame public override Animator GetFemaleAnimator(int girlIndex) => throw new NotImplementedException(); - protected override GameObject GetFemaleRoot(int girlIndex) => null; + protected override GameObject GetFemaleRoot(int girlIndex) => GameObject.Find("chaF_001"); - protected override Transform GetDickBase() => GameObject.Find("k_f_tamaL_00").transform; + protected override Transform GetDickBase() => GameObject.Find(balls).transform; protected override string GetPose(int girlIndex) => Studio.Studio.Instance.sceneInfo.GetHashCode().ToString() + isPlaying.Value;