mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-06 16:33:27 +00:00
Connection: Collapse VertInBank into std::any_of
Same thing, single line.
This commit is contained in:
parent
5d30a9d7ea
commit
8fdd9a15c4
@ -1012,10 +1012,7 @@ bool Mesh::Surface::Vert::operator==(const Vert& other) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool VertInBank(const std::vector<uint32_t>& bank, uint32_t sIdx) {
|
static bool VertInBank(const std::vector<uint32_t>& bank, uint32_t sIdx) {
|
||||||
for (uint32_t idx : bank)
|
return std::any_of(bank.cbegin(), bank.cend(), [sIdx](auto index) { return index == sIdx; });
|
||||||
if (sIdx == idx)
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mesh::SkinBanks::Bank::addSkins(const Mesh& parent, const std::vector<uint32_t>& skinIdxs) {
|
void Mesh::SkinBanks::Bank::addSkins(const Mesh& parent, const std::vector<uint32_t>& skinIdxs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user