Skip to content

Commit

Permalink
Allow setting global scale option for retargeter
Browse files Browse the repository at this point in the history
Summary: allow-large-files

Reviewed By: nickyhe-gemini

Differential Revision: D63551854

fbshipit-source-id: fd39151420eac57a66c2a8eff0bac7757da61821
  • Loading branch information
jeongseok-meta authored and facebook-github-bot committed Sep 27, 2024
1 parent 0d533e3 commit 88fcf34
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions momentum/character/parameter_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ ParameterSet ParameterTransformT<T>::getParameterSet(
bool allowMissing) const {
const auto itr = this->parameterSets.find(parameterSetName);
if (itr == this->parameterSets.end()) {
if (allowMissing) {
return ParameterSet{};
}

MT_THROW("Missing parameter set: {}", parameterSetName);
MT_THROW_IF(!allowMissing, "Missing parameter set: {}", parameterSetName);
return ParameterSet{};
}
return itr->second;
}
Expand Down

0 comments on commit 88fcf34

Please sign in to comment.