quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated into a float anyway)

This commit is contained in:
Campbell Barton
2013-08-06 06:38:52 +00:00
parent 34c64b8ea3
commit 81acaf5f15
3 changed files with 13 additions and 9 deletions

View File

@@ -2182,7 +2182,7 @@ static void minimize(float rvalue[3], float mp[3], const float pts[12][3],
ata[4] += (float)(norm[1] * norm[2]);
ata[5] += (float)(norm[2] * norm[2]);
double pn = p[0] * norm[0] + p[1] * norm[1] + p[2] * norm[2];
const float pn = p[0] * norm[0] + p[1] * norm[1] + p[2] * norm[2];
atb[0] += (float)(norm[0] * pn);
atb[1] += (float)(norm[1] * pn);