Skip to content

Commit

Permalink
Fix exception when changing clothes in KKS studio (#12)
Browse files Browse the repository at this point in the history
It seems to be due to the [Coordinate Load Option] not being well behaved, but it seems that the source code is not available over there, so please allow me to fix it here.
Also, the method of getting _ksox in Awake() worked well. However, I thought it was not a good idea to write code in Awake that depends on the behavior of other components (calls to AddComponent), so I decided to set it up in Reload in a limited way.
  • Loading branch information
takahiro0327 authored Dec 1, 2023
1 parent 0141fee commit 78ad56a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core_SkinEffects/SkinEffectsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ protected override void OnReload(GameMode currentGameMode, bool maintainState)
DisableDeflowering = false;
_talkSceneTouchCount = 0;

if (_ksox == null)
_ksox = GetComponent<KoiSkinOverlayController>();

var data = GetExtendedData();

if (!MakerAPI.InsideAndLoaded || MakerAPI.GetCharacterLoadFlags().Parameters)
Expand Down

0 comments on commit 78ad56a

Please sign in to comment.