SGText: minor typo correction
This commit is contained in:
parent
d448ad4eb3
commit
578ffec2da
@ -82,7 +82,7 @@ void SGText::UpdateCallback::operator()(osg::Node * node, osg::NodeVisitor *nv )
|
|||||||
if( text->getText().createUTF8EncodedString().compare( buf ) ) {
|
if( text->getText().createUTF8EncodedString().compare( buf ) ) {
|
||||||
// be lazy and set the text only if the property has changed.
|
// be lazy and set the text only if the property has changed.
|
||||||
// update() computes the glyph representation which looks
|
// update() computes the glyph representation which looks
|
||||||
// more expensive than a the above string compare.
|
// more expensive than the above string compare.
|
||||||
text->setText( buf, osgText::String::ENCODING_UTF8 );
|
text->setText( buf, osgText::String::ENCODING_UTF8 );
|
||||||
text->update();
|
text->update();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user