#5285 Fix missing calculation of normals on reservoir surfaces

This commit is contained in:
Jacob Støren
2020-01-09 08:59:11 +01:00
parent 1a1706d2fa
commit cd0edd084d

View File

@@ -91,6 +91,7 @@ void RivSurfacePartMgr::generateNativePartGeometry()
cvf::ref<cvf::DrawableGeo> drawGeo = new cvf::DrawableGeo;
drawGeo->addPrimitiveSet( indexSet.p() );
drawGeo->setVertexArray( cvfVertices.p() );
drawGeo->computeNormals();
m_nativeTrianglesPart = new cvf::Part();
m_nativeTrianglesPart->setDrawable( drawGeo.p() );