Skip to content

osgText::Text is not updated #2371

Answered by gwaldron
okerstadt asked this question in Support Q&A
Discussion options

You must be logged in to vote

Okerstadt,
If you're going to change osgText::Text after creation, you have to give it a dynamic data variance:

text->setDataVariance(osg::Object::DYNAMIC);

As for why the demo doesn't do that... probably because it's an ancient demo that was never updated when this became a requirement.
Hope this helps :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@okerstadt
Comment options

Answer selected by gwaldron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants