Skip to content

Commit

Permalink
WsModel fix and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
donkeyProgramming committed Jan 9, 2025
1 parent 977526a commit bd62688
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using GameWorld.Core.Rendering.Materials;
using GameWorld.Core.Rendering.Materials.Serialization;
using GameWorld.Core.Rendering.Materials.Serialization;
using GameWorld.Core.SceneNodes;
using Shared.Core.Settings;

Expand All @@ -22,7 +21,7 @@ public PharaohWsModelStrategy(WsModelGeneratorService wsModelGeneratorService, M

public void Generate(MainEditableNode mainNode, string outputPath, bool onlyVisibleNodes)
{
var input = WsModelGeneratorInputHelper.Create(mainNode);
var input = WsModelGeneratorInputHelper.Create(mainNode, onlyVisibleNodes);
_wsModelGeneratorService.GenerateWsModel(_wsMaterialGeneratorFactory.CreateInstance(GameTypeEnum.Pharaoh), outputPath, input);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using GameWorld.Core.Rendering.Materials;
using GameWorld.Core.Rendering.Materials.Serialization;
using GameWorld.Core.Rendering.Materials.Serialization;
using GameWorld.Core.SceneNodes;
using Shared.Core.Settings;

Expand All @@ -22,7 +21,7 @@ public Warhammer2WsModelStrategy(WsModelGeneratorService wsModelGeneratorService

public void Generate(MainEditableNode mainNode, string outputPath, bool onlyVisibleNodes)
{
var input = WsModelGeneratorInputHelper.Create(mainNode);
var input = WsModelGeneratorInputHelper.Create(mainNode, onlyVisibleNodes);
_wsModelGeneratorService.GenerateWsModel(_wsMaterialGeneratorFactory.CreateInstance(GameTypeEnum.Warhammer2), outputPath, input);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using GameWorld.Core.Rendering.Materials;
using GameWorld.Core.Rendering.Materials.Serialization;
using GameWorld.Core.Rendering.Materials.Serialization;
using GameWorld.Core.SceneNodes;
using Shared.Core.Settings;

Expand All @@ -23,7 +22,7 @@ public Warhammer3WsModelStrategy(WsModelGeneratorService wsModelGeneratorService

public void Generate(MainEditableNode mainNode, string outputPath, bool onlyVisibleNodes)
{
var input = WsModelGeneratorInputHelper.Create(mainNode);
var input = WsModelGeneratorInputHelper.Create(mainNode, onlyVisibleNodes);
_wsModelGeneratorService.GenerateWsModel(_wsMaterialGeneratorFactory.CreateInstance(GameTypeEnum.Warhammer3), outputPath, input);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ static private List<WsModelGeneratorInput> EnsureUniqueMeshNames(IEnumerable<WsM

public static class WsModelGeneratorInputHelper
{
public static List<WsModelGeneratorInput> Create(MainEditableNode node)
public static List<WsModelGeneratorInput> Create(MainEditableNode node, bool onlyVisibleNodes)
{
var lodNodes = node.GetLodNodes();
var output = new List<WsModelGeneratorInput>();

for (var lodIndex = 0; lodIndex < lodNodes.Count; lodIndex++)
{
var meshes = node.GetMeshesInLod(lodIndex, false);
var meshes = node.GetMeshesInLod(lodIndex, onlyVisibleNodes);

for (var meshPart = 0; meshPart < meshes.Count; meshPart++)
{
Expand Down
2 changes: 1 addition & 1 deletion Shared/SharedCore/Services/VersionChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Shared.Core.Services
public class VersionChecker
{
private static readonly string GitHubLink = @"https://github.com/donkeyProgramming/TheAssetEditor/releases/latest";
public static string CurrentVersion { get => "0.58"; }
public static string CurrentVersion { get => "0.59"; }

public static void CheckVersion()
{
Expand Down

0 comments on commit bd62688

Please sign in to comment.