From 37bce3be14d5966c02a4ecb0fcb3707fd581b973 Mon Sep 17 00:00:00 2001 From: Takahito Tejima Date: Thu, 17 Sep 2015 15:14:54 -0700 Subject: [PATCH] Fix the reserve size for BSpline patch (16, not 20) --- opensubdiv/far/endCapBSplineBasisPatchFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensubdiv/far/endCapBSplineBasisPatchFactory.cpp b/opensubdiv/far/endCapBSplineBasisPatchFactory.cpp index e66f4575..42ddd1a7 100644 --- a/opensubdiv/far/endCapBSplineBasisPatchFactory.cpp +++ b/opensubdiv/far/endCapBSplineBasisPatchFactory.cpp @@ -61,8 +61,8 @@ EndCapBSplineBasisPatchFactory::EndCapBSplineBasisPatchFactory( // finest level. int numMaxLevelFaces = refiner.GetLevel(refiner.GetMaxLevel()).GetNumFaces(); - _vertexStencils.reserve(numMaxLevelFaces*20); - _varyingStencils.reserve(numMaxLevelFaces*20); + _vertexStencils.reserve(numMaxLevelFaces*16); + _varyingStencils.reserve(numMaxLevelFaces*16); } ConstIndexArray