Skip to content

Commit

Permalink
Merge pull request #2760 from Autodesk/feldstj/LOOKDEVX-997/add_defau…
Browse files Browse the repository at this point in the history
…lt_uisoftmin

LOOKDEVX-997 | Adds default UsdShaderAttributeDef uisoftmin value of 0.0
  • Loading branch information
neilh-adsk authored Dec 1, 2022
2 parents 8b7b598 + 7eaecfd commit 6b0daac
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 6b0daac

Please sign in to comment.