Skip to content

Commit

Permalink
don't regenerate structure surfaces by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jaron780 committed May 16, 2024
1 parent 6a3c8b7 commit 6105d55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TagTool/Commands/Porting/PortTagCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ public CachedTag ConvertTagInternal(Stream cacheStream, Stream blamCacheStream,
case Scenario scnr:
{
blamDefinition = ConvertScenario(cacheStream, blamCacheStream, resourceStreams, scnr, blamTag.Name);
if (BlamCache.Platform == CachePlatform.MCC)
if (PortingOptions.Current.RegenerateStructureSurfaces)
{
foreach (var block in scnr.StructureBsps)
{
Expand Down
3 changes: 3 additions & 0 deletions TagTool/Commands/Porting/PortingOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class PortingOptions
[Description("Convert CTX1 bitmaps to DXN (default is DXT1)")]
public bool HqNormalMapConversion = false;

[Description("Regenerates the structure surface triangle mappings")]
public bool RegenerateStructureSurfaces = false;

public static PortingOptions Current = new PortingOptions();
}
}

0 comments on commit 6105d55

Please sign in to comment.