diff --git a/Editor/NDMF/NegotiateAAOPass.cs b/Editor/NDMF/NegotiateAAOPass.cs index a4120e15..3e2e5cf1 100644 --- a/Editor/NDMF/NegotiateAAOPass.cs +++ b/Editor/NDMF/NegotiateAAOPass.cs @@ -23,7 +23,7 @@ protected override void Execute(BuildContext context) if (tttComponents.Any() is false) { return; } var config = context.AvatarRootObject.GetComponent(); - var removalToIslandDisabling = config?.AAORemovalToIslandDisabling ?? true; + var removalToIsland = config?.AAORemovalToIsland ?? true; var uvEvacuationAndRegisterToAAO = config?.UVEvacuationAndRegisterToAAO ?? true; var overrideEvacuationIndex = (config?.OverrideEvacuationUVChannel ?? false) ? config?.OverrideEvacuationUVChannelIndex : null; @@ -36,7 +36,7 @@ protected override void Execute(BuildContext context) if (uvEvacuationAndRegisterToAAO && UVUsageCompabilityAPI.IsTexCoordUsed(smr, 0)) UVEvacuation(uvBuf, smr, overrideEvacuationIndex); - if (removalToIslandDisabling is false) { continue; } + if (removalToIsland is false) { continue; } var removalProvider = MeshRemovalProvider.GetForRenderer(smr); if (removalProvider is not null) using (removalProvider) diff --git a/Runtime/CommonComponent/NegotiateAAOConfig.cs b/Runtime/CommonComponent/NegotiateAAOConfig.cs index 8e8cb677..dd063ca5 100644 --- a/Runtime/CommonComponent/NegotiateAAOConfig.cs +++ b/Runtime/CommonComponent/NegotiateAAOConfig.cs @@ -1,4 +1,5 @@ using UnityEngine; +using UnityEngine.Serialization; namespace net.rs64.TexTransTool { @@ -11,7 +12,7 @@ public sealed class NegotiateAAOConfig : MonoBehaviour, ITexTransToolTag public bool UVEvacuationAndRegisterToAAO = true; public bool OverrideEvacuationUVChannel = false; [Range(1, 7)] public int OverrideEvacuationUVChannelIndex = 7; - public bool AAORemovalToIslandDisabling = true; + [FormerlySerializedAs("AAORemovalToIslandDisabling")] public bool AAORemovalToIsland = true;