successfully transmit block map
Requires a binary data type, which requires a new project serializer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user