[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35411] trunk/blender/intern/mikktspace/ mikktspace.c: Apply a small patch from mikktspace author Morten Mikkelsen ( cosmetic changes).

Nathan Letwory nathan at letworyinteractive.com
Tue Mar 8 21:39:32 CET 2011


Revision: 35411
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35411
Author:   jesterking
Date:     2011-03-08 20:39:32 +0000 (Tue, 08 Mar 2011)
Log Message:
-----------
Apply a small patch from mikktspace author Morten Mikkelsen (cosmetic changes).

Modified Paths:
--------------
    trunk/blender/intern/mikktspace/mikktspace.c

Modified: trunk/blender/intern/mikktspace/mikktspace.c
===================================================================
--- trunk/blender/intern/mikktspace/mikktspace.c	2011-03-08 20:31:45 UTC (rev 35410)
+++ trunk/blender/intern/mikktspace/mikktspace.c	2011-03-08 20:39:32 UTC (rev 35411)
@@ -436,9 +436,9 @@
 const int g_iCells = 2048;
 
 #ifdef _MSC_VER
-#define NOINLINE __declspec(noinline)
+	#define NOINLINE __declspec(noinline)
 #else
-#define NOINLINE __attribute__ ((noinline))
+	#define NOINLINE __attribute__ ((noinline))
 #endif
 
 // it is IMPORTANT that this function is called to evaluate the hash since
@@ -446,9 +446,9 @@
 // results for the same effective input value fVal.
 NOINLINE int FindGridCell(const float fMin, const float fMax, const float fVal)
 {
-const float fIndex = g_iCells * ((fVal-fMin)/(fMax-fMin));
-const int iIndex = fIndex<0?0:((int)fIndex);
-return iIndex<g_iCells?iIndex:(g_iCells-1);
+	const float fIndex = g_iCells * ((fVal-fMin)/(fMax-fMin));
+	const int iIndex = fIndex<0?0:((int)fIndex);
+	return iIndex<g_iCells?iIndex:(g_iCells-1);
 }
 
 void MergeVertsFast(int piTriList_in_and_out[], STmpVert pTmpVert[], const SMikkTSpaceContext * pContext, const int iL_in, const int iR_in);




More information about the Bf-blender-cvs mailing list