From aa2c9c152f2a4f00019de5f310bfd934837715cf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 23 Jul 2014 15:57:35 +0000 Subject: [PATCH] Changed the default text colour to black git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14382 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgUI/Style.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgUI/Style.cpp b/src/osgUI/Style.cpp index c8bd21a3d..2a47b9781 100644 --- a/src/osgUI/Style.cpp +++ b/src/osgUI/Style.cpp @@ -228,11 +228,14 @@ osg::Node* Style::createText(const osg::BoundingBox& extents, const AlignmentSet { // OSG_NOTICE<<"createText"< textDrawable = new osgText::Text; textDrawable->setName("Text"); textDrawable->setText(text); textDrawable->setEnableDepthWrites(false); + textDrawable->setColor(textColor); if (ts) {