1
0
Fork 0

Don't look for the splash screen font in the aircraft dir

The previous way only worked because after trying
SGPath(aContext, aResource), ResourceManager::findPath() tries all
providers, among which there is a BasePathProvider with $FG_ROOT as its
base... provider which doesn't use the 'aContext' argument at all.
This commit is contained in:
Florent Rougon 2022-08-24 00:00:10 +02:00
parent c24065fdce
commit 36dd57f6f4

View file

@ -463,7 +463,7 @@ SplashScreen::TextItem *SplashScreen::addText(osg::Geode* geode ,
const osg::Vec4& textColor,
const std::string &fontFace )
{
SGPath path = globals->resolve_resource_path(fontFace);
SGPath path = globals->resolve_maybe_aircraft_path(fontFace);
TextItem item;
osg::ref_ptr<osgText::Text> t = new osgText::Text;