The top-level tracks and heads fields are now inferred automatically from the

layout if not set, so we don't have to set them everywhere.
This commit is contained in:
David Given
2022-09-10 22:29:27 +02:00
parent 4ae664fd93
commit 415aa82a6f
62 changed files with 39 additions and 627 deletions

View File

@@ -219,20 +219,6 @@ public:
layout->set_tracks(geometry.numTracks);
layout->set_sides(geometry.numSides);
if (!config.has_heads())
{
auto* heads = config.mutable_heads();
heads->set_start(0);
heads->set_end(geometry.numSides - 1);
}
if (!config.has_tracks())
{
auto* tracks = config.mutable_tracks();
tracks->set_start(0);
tracks->set_end(geometry.numTracks - 1);
}
return image;
}
};