Skip to content

Commit

Permalink
Fix cut&paste damage
Browse files Browse the repository at this point in the history
  • Loading branch information
JGamache-autodesk committed Aug 29, 2023
1 parent dc9edda commit 75163e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mayaUsd/ufe/UsdShaderAttributeDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static const MetadataMap _metaMap = {
.GetString(), // Maya has 0-100 sliders. In rendering, sliders are 0-1.
[](const PXR_NS::SdrShaderProperty& p) {
// Will only be returned if the metadata does not exist.
static const auto defaultSoftMin = std::unordered_map<std::string, Ufe::Value> {
static const auto defaultSoftMax = std::unordered_map<std::string, Ufe::Value> {
{ Ufe::Attribute::kFloat, std::string { "1" } },
{ Ufe::Attribute::kFloat3, std::string { "1,1,1" } },
{ Ufe::Attribute::kColorFloat3, std::string { "1,1,1" } },
Expand All @@ -148,8 +148,8 @@ static const MetadataMap _metaMap = {
{ Ufe::Attribute::kColorFloat4, std::string { "1,1,1,1" } },
#endif
};
auto itDefault = defaultSoftMin.find(usdTypeToUfe(&p));
return itDefault != defaultSoftMin.end() ? itDefault->second : Ufe::Value();
auto itDefault = defaultSoftMax.find(usdTypeToUfe(&p));
return itDefault != defaultSoftMax.end() ? itDefault->second : Ufe::Value();
} },
// If Ufe decides to use another completely different convention, it can be added here:
};
Expand Down

0 comments on commit 75163e1

Please sign in to comment.