quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated...
[blender.git] / intern / dualcon / intern / octree.cpp
index 3ba396b940d19e32304ffd81ebaf32831e9ce989..bd7194cf3fd0603fa837a97437d5e3d64bbb462a 100644 (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);