Fix C# objects serialization bug when script throws exception during saving to Json
#1656
This commit is contained in:
@@ -73,6 +73,7 @@ namespace FlaxEngine.Json
|
||||
if (IsWriting)
|
||||
{
|
||||
// Reset writing state (eg if previous serialization got exception)
|
||||
SerializerWriter = new JsonSerializerInternalWriter(JsonSerializer);
|
||||
JsonWriter = new JsonTextWriter(StringWriter)
|
||||
{
|
||||
IndentChar = '\t',
|
||||
|
||||
Reference in New Issue
Block a user