mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-19 10:31:07 +00:00
Ensure any lazy arrays are fully populated before serialisation
This commit is contained in:
1 file changed
+5
@@ -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