successfully transmit block map

Requires a binary data type, which requires a new project serializer
This commit is contained in:
itsmattkc
2023-02-20 14:56:04 -08:00
parent 43f1be9c06
commit ffec819eef
16 changed files with 1611 additions and 501 deletions
@@ -156,6 +156,20 @@ ProjectSerializer210907::LoadData ProjectSerializer210907::Load(Project *project
// Make connections
PostConnect(xml_node_data);
// Resolve tracks
for (Node *n : project->nodes()) {
n->SetCachesEnabled(true);
if (Track *t = dynamic_cast<Track *>(n)) {
for (int i = 0; i < t->InputArraySize(Track::kBlockInput); i++) {
Block *b = static_cast<Block*>(t->GetConnectedOutput(Track::kBlockInput, i));
if (!b->track()) {
t->AppendBlock(b);
}
}
}
}
return LoadData();
}