Fix issues with model data storage when doing long actions in async (eg. SDF generation)

This commit is contained in:
Wojtek Figat
2025-11-10 15:02:33 +01:00
parent 62424215c1
commit 4805dfbdba
6 changed files with 9 additions and 10 deletions

View File

@@ -75,8 +75,6 @@ FlaxChunk* FlaxChunk::Clone() const
const int32 FlaxStorage::MagicCode = 1180124739;
FlaxStorage::LockData FlaxStorage::LockData::Invalid(nullptr);
struct Header
{
int32 MagicCode;

View File

@@ -146,7 +146,6 @@ public:
struct LockData
{
friend FlaxStorage;
static LockData Invalid;
private:
FlaxStorage* _storage;
@@ -159,6 +158,11 @@ public:
}
public:
LockData()
: _storage(nullptr)
{
}
LockData(const LockData& other)
: _storage(other._storage)
{