mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Minor fix for PPtrConverter
This commit is contained in:
parent
bc92dfb77c
commit
8ccdd0fd4e
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace AssetStudio
|
||||
@ -39,7 +38,7 @@ namespace AssetStudio
|
||||
|
||||
public override PPtr<T> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
{
|
||||
var pptrObj = JsonSerializer.Deserialize<PPtr<T>>(ref reader);
|
||||
var pptrObj = JsonSerializer.Deserialize<PPtr<T>>(ref reader, new JsonSerializerOptions { IncludeFields = true });
|
||||
pptrObj.SetAssetsFile(_assetsFile);
|
||||
return pptrObj;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user