Skip to content

Commit

Permalink
LOOKDEVX-997 | Adds default UsdShaderAttributeDef uisoftmin value of 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
feldstj committed Dec 1, 2022
1 parent 8b7b598 commit 7eaecfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mayaUsd/ufe/UsdShaderAttributeDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ static const MetadataMap _metaMap = {
}
return !r.empty() ? r : Ufe::Value();
} },
{ "uisoftmin", // Maya has 0-100 sliders. In rendering, sliders are 0-1.
[](const PXR_NS::SdrShaderProperty&) {
return std::string { "0.0" }; // Will only be returned if the metadata does not exist.
} },
{ "uisoftmax", // Maya has 0-100 sliders. In rendering, sliders are 0-1.
[](const PXR_NS::SdrShaderProperty&) {
return std::string { "1.0" }; // Will only be returned if the metadata does not exist.
Expand Down

0 comments on commit 7eaecfd

Please sign in to comment.