Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MontagueM committed Aug 12, 2023
1 parent 4b4b3c8 commit 43e82ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Arithmic/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@ public static void Fatal(string message, [CallerMemberName] string callerMethodN

private static void LogEvent(LogVerbosity verbosity, string message, string callerMethodName, string callerFile)
{
#if !DEBUG
// disable if debugging things
if (verbosity == LogVerbosity.Debug)
{
return;
}
#endif

string formattedMessage = MakeFormattedMessage(verbosity, message, callerMethodName, callerFile);
LogEventArgs logEventArgs = new LogEventArgs { Verbosity = verbosity, Message = formattedMessage, Time = DateTime.Now };
Expand Down
2 changes: 2 additions & 0 deletions Charm/ActivityMapView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,14 @@ public async void ExportFull(ExportInfo info)
if (item.Selected && item.Name == "Select all")
{
bSelectAll = true;
Log.Info($"Selected all maps");
}
else
{
if (item.Selected || bSelectAll)
{
maps.Add(FileResourcer.Get().GetSchemaTag<SMapContainer>(item.Hash));
Log.Info($"Selected map: {item.Hash}");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Charm/ModelView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
IsShadowMappingEnabled="False"
ShowCoordinateSystem="False"
ShowFrameRate="True"
ShowTriangleCountInfo="True"
ShowTriangleCountInfo="False"
EnableDeferredRendering="False" EnableRenderFrustum="True"
Title="{Binding Title}"
TextBrush="{StaticResource ForegroundColour75}"
Expand Down
4 changes: 2 additions & 2 deletions Tiger/Schema/Model/FbxHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public FbxMesh AddMeshPartToScene(MeshPart part, int index, string meshName)
lock (_fbxLock)
{
node = FbxNode.Create(_manager, mesh.GetName());
node.SetNodeAttribute(mesh);
}
node.SetNodeAttribute(mesh);

if (part.VertexNormals.Count > 0)
{
Expand Down Expand Up @@ -296,7 +296,7 @@ private void AddMaterial(FbxMesh mesh, FbxNode node, int index, IMaterial materi
FbxLayerElementMaterial materialLayer;
lock (_fbxLock)
{
fbxMaterial = FbxSurfacePhong.Create(_scene, material.FileHash);
fbxMaterial = FbxSurfacePhong.Create(_scene, material.FileHash.ToString());
materialLayer = FbxLayerElementMaterial.Create(mesh, $"matlayer_{node.GetName()}_{index}");
}
fbxMaterial.DiffuseFactor.Set(1);
Expand Down
2 changes: 1 addition & 1 deletion Tiger/Schema/Shaders/Material.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public string Decompile(byte[] shaderBytecode, string? type = "ps")
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = false;
startInfo.UseShellExecute = false;
startInfo.FileName = "3dmigoto_shader_decomp.exe";
startInfo.FileName = "ThirdParty/3dmigoto_shader_decomp.exe";
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.Arguments = $"-D {binPath}";
using (Process exeProcess = Process.Start(startInfo))
Expand Down

0 comments on commit 43e82ad

Please sign in to comment.