Skip to content

Commit

Permalink
Merge pull request #762 from ReinaS-64892/fix-NegotiateAAOConfigFiled…
Browse files Browse the repository at this point in the history
…Name

chore: rename to AAORemovalToIsland
  • Loading branch information
ReinaS-64892 authored Dec 28, 2024
2 parents 7df5cf5 + 015a582 commit 3be7ff8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Editor/NDMF/NegotiateAAOPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected override void Execute(BuildContext context)
if (tttComponents.Any() is false) { return; }

var config = context.AvatarRootObject.GetComponent<NegotiateAAOConfig>();
var removalToIslandDisabling = config?.AAORemovalToIslandDisabling ?? true;
var removalToIsland = config?.AAORemovalToIsland ?? true;
var uvEvacuationAndRegisterToAAO = config?.UVEvacuationAndRegisterToAAO ?? true;
var overrideEvacuationIndex = (config?.OverrideEvacuationUVChannel ?? false) ? config?.OverrideEvacuationUVChannelIndex : null;

Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion Runtime/CommonComponent/NegotiateAAOConfig.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.Serialization;

namespace net.rs64.TexTransTool
{
Expand All @@ -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;



Expand Down

0 comments on commit 3be7ff8

Please sign in to comment.