mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Ensure any lazy arrays are fully populated before serialisation
This commit is contained in:
@@ -715,6 +715,11 @@ void DoSerialise(SerialiserType &ser, SDObjectData &el)
|
||||
template <class SerialiserType>
|
||||
void DoSerialise(SerialiserType &ser, SDObject &el)
|
||||
{
|
||||
if(ser.IsWriting())
|
||||
{
|
||||
el.PopulateAllChildren();
|
||||
}
|
||||
|
||||
SERIALISE_MEMBER(name);
|
||||
SERIALISE_MEMBER(type);
|
||||
SERIALISE_MEMBER(data);
|
||||
|
||||
Reference in New Issue
Block a user