diff options
Diffstat (limited to 'intern/mikktspace')
-rw-r--r-- | intern/mikktspace/mikktspace.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c index 822e5fbc44e..7e5861ea9ed 100644 --- a/intern/mikktspace/mikktspace.c +++ b/intern/mikktspace/mikktspace.c @@ -477,12 +477,14 @@ static void GenerateSharedVerticesIndexList(int piTriList_in_and_out[], const SM if (vDim.y>vDim.x && vDim.y>vDim.z) { iChannel=1; - fMin = vMin.y, fMax=vMax.y; + fMin = vMin.y; + fMax = vMax.y; } else if (vDim.z>vDim.x) { iChannel=2; - fMin = vMin.z, fMax=vMax.z; + fMin = vMin.z; + fMax = vMax.z; } // make allocations @@ -1660,7 +1662,8 @@ static void QuickSortEdges(SEdge * pSortBuffer, int iLeft, int iRight, const int uSeed=uSeed+t+3; // Random end - iL=iLeft, iR=iRight; + iL = iLeft; + iR = iRight; n = (iR-iL)+1; assert(n>=0); index = (int) (uSeed%n); |