Add content deprecation system that auto-saves assets in Editor that use old data format

This commit is contained in:
Wojtek Figat
2025-01-20 23:46:49 +01:00
parent 1497acef58
commit 8a7ceef288
67 changed files with 751 additions and 427 deletions

View File

@@ -5,6 +5,7 @@
#include "Engine/Core/Math/Vector4.h"
#include "Engine/Core/Math/Matrix.h"
#include "Engine/Content/Content.h"
#include "Engine/Content/Deprecated.h"
#include "Engine/Graphics/GPUContext.h"
#include "Engine/Engine/GameplayGlobals.h"
#include "Engine/Serialization/MemoryWriteStream.h"
@@ -652,6 +653,8 @@ bool MaterialParams::Load(ReadStream* stream)
{
case 1: // [Deprecated on 15.11.2019, expires on 15.11.2021]
{
MARK_CONTENT_DEPRECATED();
// Size of the collection
uint16 paramsCount;
stream->ReadUint16(&paramsCount);
@@ -727,6 +730,8 @@ bool MaterialParams::Load(ReadStream* stream)
break;
case 2: // [Deprecated on 15.11.2019, expires on 15.11.2021]
{
MARK_CONTENT_DEPRECATED();
// Size of the collection
uint16 paramsCount;
stream->ReadUint16(&paramsCount);