Skip to content

Commit

Permalink
load mat layers from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
4sval committed Feb 25, 2023
1 parent 5d730f0 commit 2e18097
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CUE4Parse
2 changes: 1 addition & 1 deletion FModel/Views/Snooper/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Options

public readonly Dictionary<string, Texture> Icons;

private ETexturePlatform _platform;
private readonly ETexturePlatform _platform;

public Options()
{
Expand Down
3 changes: 2 additions & 1 deletion FModel/Views/Snooper/Shading/Material.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using CUE4Parse.UE4.Objects.Core.Math;
using CUE4Parse.UE4.Objects.Core.Misc;
using FModel.Extensions;
using FModel.Settings;
using FModel.Views.Snooper.Models;
using ImGuiNET;
using OpenTK.Graphics.OpenGL4;
Expand Down Expand Up @@ -66,7 +67,7 @@ public void SwapMaterial(UMaterialInterface unrealMaterial)
{
Name = unrealMaterial.Name;
Path = unrealMaterial.GetPathName();
unrealMaterial.GetParams(Parameters, EMaterialFormat.AllLayers);
unrealMaterial.GetParams(Parameters, UserSettings.Default.MaterialExportFormat);
}

public void Setup(Options options, int uvCount)
Expand Down
2 changes: 1 addition & 1 deletion FModel/Views/Snooper/Shading/TextureHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static void FixChannels(UTexture2D o, FTexture2DMipMap mip, ref byte[] da
// B: Metallic
case "hk_project":
case "cosmicshake":
case "phoenix":
{
unsafe
{
Expand All @@ -42,7 +43,6 @@ public static void FixChannels(UTexture2D o, FTexture2DMipMap mip, ref byte[] da
case "shootergame":
case "divineknockout":
case "moonman":
case "marsman":
{
unsafe
{
Expand Down

0 comments on commit 2e18097

Please sign in to comment.