Merge pull request #344 from eligovision/OpenSceneGraph_text3d

Text3D dynamic changing fix
This commit is contained in:
OpenSceneGraph git repository 2017-09-04 15:21:26 +01:00 committed by GitHub
commit 4bc1320709

View File

@ -438,9 +438,11 @@ void Text3D::computeGlyphRepresentation()
{
(*_coords)[i] += position;
}
_coords->dirty();
// copy normals
_normals->insert(_normals->end(), src_normals->begin(), src_normals->end());
_normals->dirty();
copyAndOffsetPrimitiveSets(_frontPrimitiveSetList, it->_glyphGeometry->getFrontPrimitiveSetList(), base);
copyAndOffsetPrimitiveSets(_wallPrimitiveSetList, it->_glyphGeometry->getWallPrimitiveSetList(), base);