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:
authorCampbell Barton <ideasman42@gmail.com>2013-08-06 10:38:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-06 10:38:52 +0400
commit81acaf5f15f5c1c5e5d34fed065939982912b189 (patch)
tree789ab74d7bca799c975abd692738325454eadb10 /intern/dualcon
parent34c64b8ea33236ae5b1fd3720defc73d08710e29 (diff)
quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated into a float anyway)
Diffstat (limited to 'intern/dualcon')
-rw-r--r--intern/dualcon/intern/octree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/dualcon/intern/octree.cpp b/intern/dualcon/intern/octree.cpp
index 3ba396b940d..bd7194cf3fd 100644
--- a/intern/dualcon/intern/octree.cpp
+++ b/intern/dualcon/intern/octree.cpp
@@ -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);