From 3503a0fefb112436ccedd958af382f3076ee12b9 Mon Sep 17 00:00:00 2001 From: "Konstantin S. Matveyev" Date: Mon, 4 Sep 2017 11:29:50 +0300 Subject: [PATCH] Text3D dynamic changing fix --- src/osgText/Text3D.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgText/Text3D.cpp b/src/osgText/Text3D.cpp index 98056db58..ef9561422 100644 --- a/src/osgText/Text3D.cpp +++ b/src/osgText/Text3D.cpp @@ -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);