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