Ensure dictionary for LazyDics is created before adding content to it
parent
466b34cf53
commit
6f31254ae1
|
@ -1090,6 +1090,8 @@ class Asset {
|
|||
friend struct Buffer; // To access OpenFile
|
||||
friend class AssetWriter;
|
||||
|
||||
std::vector<LazyDictBase *> mDicts;
|
||||
|
||||
public:
|
||||
//! Keeps info about the enabled extensions
|
||||
struct Extensions {
|
||||
|
@ -1157,6 +1159,7 @@ public:
|
|||
|
||||
public:
|
||||
Asset(IOSystem *io = nullptr, rapidjson::IRemoteSchemaDocumentProvider *schemaDocumentProvider = nullptr) :
|
||||
mDicts(),
|
||||
extensionsUsed(),
|
||||
extensionsRequired(),
|
||||
asset(),
|
||||
|
@ -1217,7 +1220,6 @@ private:
|
|||
size_t mSceneLength;
|
||||
size_t mBodyOffset;
|
||||
size_t mBodyLength;
|
||||
std::vector<LazyDictBase *> mDicts;
|
||||
IdMap mUsedIds;
|
||||
Ref<Buffer> mBodyBuffer;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue