Skip to content

Commit ba3981a

Browse files
committed
Same for GroomParameters
1 parent 09c83be commit ba3981a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libs/Groom/GroomParameters.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,18 @@ GroomParameters::GroomParameters(ProjectHandle project, std::string domain_name)
141141
Keys::CENTER,
142142
Keys::ICP};
143143

144+
std::vector<std::string> to_remove;
145+
144146
// check if params_ has any unknown keys
145147
for (auto& param : params_.get_map()) {
146148
if (std::find(all_params.begin(), all_params.end(), param.first) == all_params.end()) {
147149
SW_WARN("Unknown Grooming parameter: " + param.first);
150+
to_remove.push_back(param.first);
148151
}
149152
}
153+
for (auto& param : to_remove) {
154+
params_.remove_entry(param);
155+
}
150156
}
151157

152158
//---------------------------------------------------------------------------

0 commit comments

Comments
 (0)