Commit 6510b63f authored by Carson Brownlee's avatar Carson Brownlee
Browse files

static cast to fix windows warning

parent 8d2f8d45
......@@ -305,7 +305,7 @@ OSPGeometricModel RenderAsCylinders(std::vector<osp::vec3f>& vertices,
{
const double avg =
(*scaleArray->GetTuple(indexArray[i]) + *scaleArray->GetTuple(indexArray[i])) * 0.5;
const double r = MapThroughPWF(avg, scaleFunction);
const float r = static_cast<float>(MapThroughPWF(avg, scaleFunction));
const osp::vec3f& v = vertices[indexArray[i]];
// linear not supported for variable radii, must use curve type with
// 4 instead of 2 control points
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment