fix crash bug of mayaViewer with edgeCreases

This commit is contained in:
Takahito Tejima 2012-08-23 12:05:04 -07:00
parent 58b3d8fec7
commit 27779c8718
2 changed files with 2 additions and 2 deletions

View File

@ -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]);

View File

@ -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]);