From abb63e319998f11a7f9f1a1ce4ba4a6202315603 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 3 Feb 2009 12:47:41 +0000 Subject: [PATCH] Added setDataVariance(DYNAMIC) to text label as it's being updated dynamically --- examples/osgtexture2D/osgtexture2D.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/osgtexture2D/osgtexture2D.cpp b/examples/osgtexture2D/osgtexture2D.cpp index 57f7dc799..b0329f01d 100644 --- a/examples/osgtexture2D/osgtexture2D.cpp +++ b/examples/osgtexture2D/osgtexture2D.cpp @@ -657,6 +657,7 @@ osg::Node* createSubloadWall(osg::BoundingBox& bb) // create the text label. osgText::Text* text = new osgText::Text; + text->setDataVariance(osg::Object::DYNAMIC); text->setFont("fonts/arial.ttf"); text->setPosition(center); text->setCharacterSize(height*0.03f);