The wrong file name was being used readFontFile.
This commit is contained in:
@@ -63,7 +63,7 @@ osgText::Font* osgText::readFontFile(const std::string& filename)
|
||||
std::string foundFile = findFontFile(filename);
|
||||
if (foundFile.empty()) return 0;
|
||||
|
||||
osg::Object* object = osgDB::readObjectFile(filename);
|
||||
osg::Object* object = osgDB::readObjectFile(foundFile);
|
||||
|
||||
// if the object is a font then return it.
|
||||
osgText::Font* font = dynamic_cast<osgText::Font*>(object);
|
||||
|
||||
Reference in New Issue
Block a user