mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-27 14:00:10 +00:00
Merge pull request #761 from davidgyu/stencilFactoryFix
Fixed potential crash in Far::StencilTableFactory
This commit is contained in:
commit
b3213df0a1
@ -212,7 +212,8 @@ StencilTableFactory::AppendLocalPointStencilTable(
|
|||||||
|
|
||||||
// factorize and append.
|
// factorize and append.
|
||||||
if (baseStencilTable == NULL or
|
if (baseStencilTable == NULL or
|
||||||
localPointStencilTable == NULL) return NULL;
|
localPointStencilTable == NULL or
|
||||||
|
localPointStencilTable->GetNumStencils() == 0) return NULL;
|
||||||
|
|
||||||
// baseStencilTable can be built with or without singular stencils
|
// baseStencilTable can be built with or without singular stencils
|
||||||
// (single weight of 1.0f) as place-holders for coarse mesh vertices.
|
// (single weight of 1.0f) as place-holders for coarse mesh vertices.
|
||||||
|
Loading…
Reference in New Issue
Block a user