mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-14 16:01:08 +00:00
Merge pull request #627 from takahito-tejima/bugfix
Fix a bug in LimitStencilTableFactory
This commit is contained in:
commit
1c5b4778d6
@ -353,7 +353,10 @@ LimitStencilTableFactory::Create(TopologyRefiner const & refiner,
|
||||
cvstencils = StencilTableFactory::Create(refiner, options);
|
||||
} else {
|
||||
// Sanity checks
|
||||
if (cvstencils->GetNumStencils() != (uniform ?
|
||||
//
|
||||
// Note that the input cvStencils could be larger than the number of
|
||||
// refiner's vertices, due to the existence of the end cap stencils.
|
||||
if (cvstencils->GetNumStencils() < (uniform ?
|
||||
refiner.GetLevel(maxlevel).GetNumVertices() :
|
||||
refiner.GetNumVerticesTotal())) {
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user