Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2011-03-08 23:39:32 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2011-03-08 23:39:32 +0300
commited8719bd1f1011ade261a8623757ac6820af5e31 (patch)
tree548fed2bd780b523f3943b155ee0e4e649bd49b8 /intern/mikktspace
parenta193b14c2514e93949773cb1e65462baa68d3349 (diff)
Apply a small patch from mikktspace author Morten Mikkelsen (cosmetic changes).
Diffstat (limited to 'intern/mikktspace')
-rw-r--r--intern/mikktspace/mikktspace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c
index fcfd5edca8d..0c7f76e1269 100644
--- a/intern/mikktspace/mikktspace.c
+++ b/intern/mikktspace/mikktspace.c
@@ -436,9 +436,9 @@ typedef struct
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 @@ const int g_iCells = 2048;
// 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);