Skip to content

Commit ebc1573

Browse files
committed
[globe] Add path to gui images when running from build directory
1 parent ba4e438 commit ebc1573

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plugins/globe/globe_plugin.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,11 @@ void GlobePlugin::syncExtent()
496496

497497
void GlobePlugin::setupControls()
498498
{
499-
500499
std::string imgDir = QDir::cleanPath( QgsApplication::pkgDataPath() + "/globe/gui" ).toStdString();
500+
if ( QgsApplication::isRunningFromBuildDir() )
501+
{
502+
imgDir = QDir::cleanPath( QgsApplication::buildSourcePath() + "/src/plugins/globe/images/gui" ).toStdString();
503+
}
501504
osgEarth::Util::EarthManipulator* manip = dynamic_cast<osgEarth::Util::EarthManipulator*>( mOsgViewer->getCameraManipulator() );
502505

503506
osg::Image* yawPitchWheelImg = osgDB::readImageFile( imgDir + "/YawPitchWheel.png" );

0 commit comments

Comments
 (0)