Added color property to FontData parsing

This commit is contained in:
Robert Osfield
2013-08-23 11:42:52 +00:00
parent d7038e1be1
commit ef32fab30e

View File

@@ -827,6 +827,16 @@ bool ReaderWriterP3DXML::getProperties(osgDB::XmlNode*cur, osgPresentation::Slid
OSG_NOTIFY(_notifyLevel)<<"read alignment \""<<value.alignment<<"\""<<std::endl;
}
std::string colorString;
if (getProperty(cur, "color", colorString) || getProperty(cur, "colour", colorString) )
{
propertiesRead = true;
value.color = mapStringToColor(colorString);
OSG_NOTIFY(_notifyLevel)<<"read color \""<<value.color<<"\""<<std::endl;
}
return propertiesRead;
}