Build and warning fixes

This commit is contained in:
Laurens Voerman
2016-06-06 17:54:29 +01:00
committed by Robert Osfield
parent 357f76ba5a
commit 15e9484ff2
2 changed files with 7 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ WriterCompareTriangle::operator()(const std::pair<Triangle, int>& t1,
if (t1.second != t2.second)
{
const osg::Geometry* g = geode.getDrawable( t2.second )->asGeometry();
vecs = static_cast<const osg::Vec3Array*>(g->getVertexArray());
const osg::Geometry* g2 = geode.getDrawable( t2.second )->asGeometry();
vecs = static_cast<const osg::Vec3Array*>(g2->getVertexArray());
}
const osg::Vec3::value_type x2 = (*vecs)[t2.first.t1].x();
const osg::Vec3::value_type y2 = (*vecs)[t2.first.t1].y();