mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-26 09:41:08 +00:00
fix crash bug of mayaViewer with edgeCreases
This commit is contained in:
parent
58b3d8fec7
commit
27779c8718
@ -159,7 +159,7 @@ OpenSubdiv::OsdHbrMesh * ConvertToHBR(int nVertices,
|
||||
}
|
||||
nEdgeCreases = (int)edgeCreases2.size();
|
||||
for (int i = 0; i < nEdgeCreases; ++i) {
|
||||
if( edgeCreases1[i] <= 0. )
|
||||
if( edgeCreases2[i] <= 0. )
|
||||
continue;
|
||||
|
||||
OpenSubdiv::OsdHbrVertex * v0 = hbrMesh->GetVertex(edgeCrease2Indices[i*2]);
|
||||
|
@ -154,7 +154,7 @@ OpenSubdiv::OsdHbrMesh * ConvertToHBR(int nVertices,
|
||||
}
|
||||
nEdgeCreases = (int)edgeCreases2.size();
|
||||
for (int i = 0; i < nEdgeCreases; ++i) {
|
||||
if( edgeCreases1[i] <= 0. )
|
||||
if( edgeCreases2[i] <= 0. )
|
||||
continue;
|
||||
|
||||
OpenSubdiv::OsdHbrVertex * v0 = hbrMesh->GetVertex(edgeCrease2Indices[i*2]);
|
||||
|
Loading…
Reference in New Issue
Block a user