private bool ApplyParamHip() { #if DEBUG BreastPhysicsController.Logger.LogDebug("Call ApplyParamHip"); #endif DynamicBone_Ver02 hipL = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipL); if (hipL != null) { #if DEBUG BreastPhysicsController.Logger.LogDebug("ApplyParamHip to HipL"); #endif if (!CharaParamControl.ApplyParamHip(paramCustom.paramHip, hipL)) { return(false); } } else { return(false); } DynamicBone_Ver02 hipR = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipR); if (hipR != null) { #if DEBUG BreastPhysicsController.Logger.LogDebug("ApplyParamHip to HipR"); #endif if (!CharaParamControl.ApplyParamHip(paramCustom.paramHip, hipR)) { return(false); } } else { return(false); } return(true); }
public bool RestoreHip(ChaControl control) { #if DEBUG BreastPhysicsController.Logger.LogDebug("Call RestoreHip"); #endif if (!backupedHip) { return(false); } DynamicBone_Ver02 hipL = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipL); DynamicBone_Ver02 hipR = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipR); CharaParamControl.ApplyParamHip(hip, hipL); CharaParamControl.ApplyParamHip(hip, hipR); backupedHip = false; hip.Clear(); #if DEBUG BreastPhysicsController.Logger.LogDebug("Done RestoreHip"); #endif return(false); }