Skip to content

Commit

Permalink
FModel v4.4.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
4sval committed Aug 27, 2023
1 parent 53bfbed commit a1494bf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions FModel/FModel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<TargetFramework>net6.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>FModel.ico</ApplicationIcon>
<Version>4.4.3.2</Version>
<AssemblyVersion>4.4.3.2</AssemblyVersion>
<FileVersion>4.4.3.2</FileVersion>
<Version>4.4.3.3</Version>
<AssemblyVersion>4.4.3.3</AssemblyVersion>
<FileVersion>4.4.3.3</FileVersion>
<IsPackable>false</IsPackable>
<IsPublishable>true</IsPublishable>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand Down
1 change: 1 addition & 0 deletions FModel/Settings/UserSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static UserSettings()

public static void Save()
{
if (Default == null) return;
Default.PerDirectory[Default.CurrentDir.GameDirectory] = Default.CurrentDir;
File.WriteAllText(FilePath, JsonConvert.SerializeObject(Default, Formatting.Indented));
}
Expand Down
2 changes: 0 additions & 2 deletions FModel/ViewModels/ApplicationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public FStatus Status
public SettingsViewModel SettingsView { get; }
public AesManagerViewModel AesManager { get; }
public AudioPlayerViewModel AudioPlayer { get; }
public MapViewerViewModel MapViewer { get; }
private OodleCompressor _oodle;

public ApplicationViewModel()
Expand All @@ -83,7 +82,6 @@ public ApplicationViewModel()
CustomDirectories = new CustomDirectoriesViewModel();
SettingsView = new SettingsViewModel();
AesManager = new AesManagerViewModel(CUE4Parse);
MapViewer = new MapViewerViewModel(CUE4Parse);
AudioPlayer = new AudioPlayerViewModel();

Status.SetStatus(EStatusKind.Ready);
Expand Down
2 changes: 1 addition & 1 deletion FModel/Views/DirectorySelector.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<GroupBox Grid.Row="1" adonisExtensions:LayerExtension.Layer="2" Margin="10 10 10 18"
Padding="{adonisUi:Space 0}" Background="Transparent">
<StackPanel>
<Grid Margin="0 5">
<Grid x:Name="Hello" Margin="0 5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
Expand Down
5 changes: 3 additions & 2 deletions FModel/Views/Snooper/Shading/Material.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void Setup(Options options, int uvCount)
}

{ // ambient occlusion + color boost
if (Parameters.TryGetTexture2d(out var original, "M", "AEM", "AO") &&
if (Parameters.TryGetTexture2d(out var original, "M", "AEM", "AO", "Mask") &&
!original.Name.Equals("T_BlackMask") && options.TryGetTexture(original, false, out var transformed))
{
HasAo = true;
Expand Down Expand Up @@ -133,7 +133,8 @@ public void Setup(Options options, int uvCount)
"EmissiveUVPositioning (RG)UpperLeft (BA)LowerRight"))
EmissiveRegion = new Vector4(EmissiveUVs.R, EmissiveUVs.G, EmissiveUVs.B, EmissiveUVs.A);

if (Parameters.TryGetSwitch(out var swizzleRoughnessToGreen, "SwizzleRoughnessToGreen") && swizzleRoughnessToGreen)
if ((Parameters.TryGetSwitch(out var swizzleRoughnessToGreen, "SwizzleRoughnessToGreen") && swizzleRoughnessToGreen) ||
Parameters.Textures.ContainsKey("SRM"))
{
foreach (var specMask in SpecularMasks)
{
Expand Down

0 comments on commit a1494bf

Please sign in to comment.