Add content deprecation system that auto-saves assets in Editor that use old data format
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "Engine/Scripting/ManagedCLR/MClass.h"
|
||||
#include "Engine/Threading/Threading.h"
|
||||
#include "Engine/Content/Content.h"
|
||||
#include "Engine/Content/Deprecated.h"
|
||||
#include "Engine/Core/Cache.h"
|
||||
#include "Engine/Core/Collections/CollectionPoolCache.h"
|
||||
#include "Engine/Debug/Exceptions/JsonParseException.h"
|
||||
@@ -1074,12 +1075,18 @@ void Actor::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
|
||||
// StaticFlags update - added StaticFlags::Navigation
|
||||
// [Deprecated on 17.05.2020, expires on 17.05.2021]
|
||||
if (modifier->EngineBuild < 6178 && (int32)_staticFlags == (1 + 2 + 4))
|
||||
{
|
||||
MARK_CONTENT_DEPRECATED();
|
||||
_staticFlags |= StaticFlags::Navigation;
|
||||
}
|
||||
|
||||
// StaticFlags update - added StaticFlags::Shadow
|
||||
// [Deprecated on 17.05.2020, expires on 17.05.2021]
|
||||
if (modifier->EngineBuild < 6601 && (int32)_staticFlags == (1 + 2 + 4 + 8))
|
||||
{
|
||||
MARK_CONTENT_DEPRECATED();
|
||||
_staticFlags |= StaticFlags::Shadow;
|
||||
}
|
||||
|
||||
const auto tag = stream.FindMember("Tag");
|
||||
if (tag != stream.MemberEnd())
|
||||
|
||||
Reference in New Issue
Block a user