From 7a5582641911a0da74d2122dc676f911806cf168 Mon Sep 17 00:00:00 2001 From: barry Date: Fri, 13 Dec 2019 13:49:54 -0800 Subject: [PATCH] Fixed imaging/pxOsd to accept all mesh face-varying interpolation options: - added conditions to PxOsdRefinerFactory for cornersOnly and cornersPlus2 --- pxr/imaging/pxOsd/refinerFactory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pxr/imaging/pxOsd/refinerFactory.cpp b/pxr/imaging/pxOsd/refinerFactory.cpp index 76e7c37eba..7f6d955d3a 100644 --- a/pxr/imaging/pxOsd/refinerFactory.cpp +++ b/pxr/imaging/pxOsd/refinerFactory.cpp @@ -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) {