- [Core] Fix bug with parsing Mesh [BH3]

- [GUI] Moved option to show `JSON` to `Dump` tab when `TypeTree` is not avaliable.
This commit is contained in:
Razmoth
2024-02-01 19:10:38 +04:00
parent 87e87cf0ab
commit 9ad9230946
3 changed files with 16 additions and 9 deletions

View File

@@ -18,7 +18,6 @@ using System.Windows.Forms;
using static AssetStudio.GUI.Studio;
using OpenTK.Graphics;
using OpenTK.Mathematics;
using Newtonsoft.Json.Converters;
using System.Text.RegularExpressions;
using OpenTK.Audio.OpenAL;
@@ -870,12 +869,6 @@ namespace AssetStudio.GUI
break;
default:
var str = assetItem.Asset.Dump();
if (Properties.Settings.Default.displayAll || string.IsNullOrEmpty(str))
{
var settings = new JsonSerializerSettings();
settings.Converters.Add(new StringEnumConverter());
str = JsonConvert.SerializeObject(assetItem.Asset, Formatting.Indented, settings);
}
if (str != null)
{
textPreviewBox.Text = str;