From 36dd57f6f4c868c2e6560a72883ad19c2043cc4c Mon Sep 17 00:00:00 2001 From: Florent Rougon <f.rougon@frougon.net> Date: Wed, 24 Aug 2022 00:00:10 +0200 Subject: [PATCH] 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. --- src/Viewer/splash.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index 8fec18368..955d80520 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -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;