mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-16 09:09:26 +00:00
Better name for serialised element in optional object
This commit is contained in:
1 parent
ff4b346a3a
commit
cfe960fb9a
1 file changed
+1
-1
@@ -1123,7 +1123,7 @@ void SerialiseOptionalObject(Serialiser *ser, const char *name, T *&el)
|
||||
bool present;
|
||||
|
||||
present = el != NULL;
|
||||
ser->Serialise("present", present);
|
||||
ser->Serialise((string(name) + "Present").c_str(), present);
|
||||
if(present)
|
||||
{
|
||||
if(ser->IsReading())
|
||||
|
||||
Reference in new issue
Block a user