fix bug where splitter filters were not taken over to blueprint
This commit is contained in:
@@ -201,6 +201,16 @@ Blueprint BlueprintPanel::createBlueprintFromSelection() const
|
||||
bb.offset = e.building->anchor - center;
|
||||
bb.recipeId = e.building->recipeId;
|
||||
bb.shipLayout = e.building->shipLayout;
|
||||
if (e.building->type == BuildingType::Splitter)
|
||||
{
|
||||
const std::optional<BeltSystem::SplitterInfo> info =
|
||||
m_sim->belts().getSplitterInfo(e.building->anchor);
|
||||
if (info.has_value())
|
||||
{
|
||||
bb.splitterFilterA = info->filterA;
|
||||
bb.splitterFilterB = info->filterB;
|
||||
}
|
||||
}
|
||||
bp.buildings.push_back(bb);
|
||||
}
|
||||
return bp;
|
||||
|
||||
Reference in New Issue
Block a user