From 2e99a74df9ecfa18c4081cdcc82227e2e24f14b1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 24 Jun 2021 15:42:35 +1000 Subject: Cleanup: use '#if 0' for commented code-block --- intern/mikktspace/mikktspace.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'intern/mikktspace') diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c index b0119f54019..96e8d433e30 100644 --- a/intern/mikktspace/mikktspace.c +++ b/intern/mikktspace/mikktspace.c @@ -425,14 +425,15 @@ tbool genTangSpace(const SMikkTSpaceContext *pContext, const float fAngularThres index = 0; for (f = 0; f < iNrFaces; f++) { const int verts = pContext->m_pInterface->m_getNumVerticesOfFace(pContext, f); - if (verts != 3 && verts != 4) + if (verts != 3 && verts != 4) { continue; + } // I've decided to let degenerate triangles and group-with-anythings // vary between left/right hand coordinate systems at the vertices. // All healthy triangles on the other hand are built to always be either or. - - /*// force the coordinate system orientation to be uniform for every face. +#if 0 + // force the coordinate system orientation to be uniform for every face. // (this is already the case for good triangles but not for // degenerate ones and those with bGroupWithAnything==true) bool bOrient = psTspace[index].bOrient; @@ -447,7 +448,8 @@ tbool genTangSpace(const SMikkTSpaceContext *pContext, const float fAngularThres else ++i; } if (!bNotFound) bOrient = psTspace[index+i].bOrient; - }*/ + } +#endif // set data for (i = 0; i < verts; i++) { -- cgit v1.2.3