successfully transmit block map
Requires a binary data type, which requires a new project serializer
This commit is contained in:
@@ -205,6 +205,20 @@ ProjectSerializer211228::LoadData ProjectSerializer211228::Load(Project *project
|
||||
}
|
||||
}
|
||||
|
||||
// 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 load_data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user