those are copied into their destination and never ever linked anywhere else anyway
} else {
throw Error("aggregate type fields must be referenced");
}
+ } else if (i->second->IsLiteral() && !fd.IsReferenced()) {
+ // inline literals
+ if (i->second->GetLiteral().IsObject()) {
+ ReadObject(fd.TypeId(), -1, dest, *i->second->GetLiteral().GetProperties());
+ } else {
+ ReadLiteral(fd.TypeId(), -1, dest, i->second->GetLiteral());
+ }
} else {
char *src(reinterpret_cast<char *>(GetObject(fd.TypeId(), *i->second)));
if (fd.TypeId() == TypeDescription::GetTypeId("Image")) {