From 831ff856b4f6b4093d8e38e2807e1bbd7bec38f8 Mon Sep 17 00:00:00 2001 From: barry Date: Fri, 2 Sep 2016 20:22:37 -0700 Subject: [PATCH] Fixed shadowing bug accidentally introduced in computePatchParam() --- opensubdiv/far/patchTableFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensubdiv/far/patchTableFactory.cpp b/opensubdiv/far/patchTableFactory.cpp index e5e3ad8c..7084ac69 100644 --- a/opensubdiv/far/patchTableFactory.cpp +++ b/opensubdiv/far/patchTableFactory.cpp @@ -780,10 +780,10 @@ PatchTableFactory::computePatchParam( Refinement const& refinement = refiner.getRefinement(i-1); Level const& parentLevel = refiner.getLevel(i-1); - Index parentFaceIndex = refinement.getChildFaceParentFace(faceIndex); - int childIndexInParent = refinement.getChildFaceInParentFace(faceIndex); + Index parentFaceIndex = refinement.getChildFaceParentFace(faceIndex); if (parentLevel.getFaceVertices(parentFaceIndex).size() == 4) { + childIndexInParent = refinement.getChildFaceInParentFace(faceIndex); switch ( childIndexInParent ) { case 0 : break; case 1 : { u+=ofs; } break;