fix compiler warning

This commit is contained in:
wmayer
2016-10-31 21:31:35 +01:00
parent 4c004daa62
commit 179c05a42f
4 changed files with 10 additions and 6 deletions

View File

@@ -202,9 +202,9 @@ private:
Py::Float r(t[0]);
Py::Float g(t[1]);
Py::Float b(t[2]);
App::Color c(static_cast<double>(r),
static_cast<double>(g),
static_cast<double>(b));
App::Color c(static_cast<float>(r),
static_cast<float>(g),
static_cast<float>(b));
colors.push_back(c.getPackedValue());
}
mesher.setColors(colors);