Add automatic restoring Anim Event tracks when reimporting animation asset
#2363
This commit is contained in:
@@ -948,6 +948,13 @@ void WriteStream::WriteJson(ISerializable* obj, const void* otherObj)
|
||||
WriteInt32(0);
|
||||
}
|
||||
|
||||
void WriteStream::WriteJson(const StringAnsiView& json)
|
||||
{
|
||||
WriteInt32(FLAXENGINE_VERSION_BUILD);
|
||||
WriteInt32((int32)json.Length());
|
||||
WriteBytes((byte*)json.Get(), (int32)json.Length());
|
||||
}
|
||||
|
||||
void WriteStream::WriteString(const StringView& data)
|
||||
{
|
||||
Write(data);
|
||||
|
||||
@@ -233,6 +233,7 @@ public:
|
||||
/// <param name="obj">The object to serialize.</param>
|
||||
/// <param name="otherObj">The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties.</param>
|
||||
void WriteJson(ISerializable* obj, const void* otherObj = nullptr);
|
||||
void WriteJson(const StringAnsiView& json);
|
||||
|
||||
public:
|
||||
// Writes String to the stream
|
||||
|
||||
Reference in New Issue
Block a user