Skip to content

Commit

Permalink
Fixed imaging/pxOsd to accept all mesh face-varying interpolation opt…
Browse files Browse the repository at this point in the history
…ions:

    - added conditions to PxOsdRefinerFactory for cornersOnly and cornersPlus2
  • Loading branch information
barfowl committed Dec 13, 2019
1 parent 62f65d0 commit 7a55826
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pxr/imaging/pxOsd/refinerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,12 @@ Converter::GetOptions() const {
if (!faceVaryingLinearInterpolation.IsEmpty()) {
if (faceVaryingLinearInterpolation==PxOsdOpenSubdivTokens->all) {
options.SetFVarLinearInterpolation(Options::FVAR_LINEAR_ALL);
} else if (faceVaryingLinearInterpolation==PxOsdOpenSubdivTokens->cornersOnly) {
options.SetFVarLinearInterpolation(Options::FVAR_LINEAR_CORNERS_ONLY);
} else if (faceVaryingLinearInterpolation==PxOsdOpenSubdivTokens->cornersPlus1) {
options.SetFVarLinearInterpolation(Options::FVAR_LINEAR_CORNERS_PLUS1);
} else if (faceVaryingLinearInterpolation==PxOsdOpenSubdivTokens->cornersPlus2) {
options.SetFVarLinearInterpolation(Options::FVAR_LINEAR_CORNERS_PLUS2);
} else if (faceVaryingLinearInterpolation==PxOsdOpenSubdivTokens->none) {
options.SetFVarLinearInterpolation(Options::FVAR_LINEAR_NONE);
} else if (faceVaryingLinearInterpolation==PxOsdOpenSubdivTokens->boundaries) {
Expand Down

0 comments on commit 7a55826

Please sign in to comment.