We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ba4e438 commit ebc1573Copy full SHA for ebc1573
src/plugins/globe/globe_plugin.cpp
@@ -496,8 +496,11 @@ void GlobePlugin::syncExtent()
496
497
void GlobePlugin::setupControls()
498
{
499
-
500
std::string imgDir = QDir::cleanPath( QgsApplication::pkgDataPath() + "/globe/gui" ).toStdString();
+ if ( QgsApplication::isRunningFromBuildDir() )
501
+ {
502
+ imgDir = QDir::cleanPath( QgsApplication::buildSourcePath() + "/src/plugins/globe/images/gui" ).toStdString();
503
+ }
504
osgEarth::Util::EarthManipulator* manip = dynamic_cast<osgEarth::Util::EarthManipulator*>( mOsgViewer->getCameraManipulator() );
505
506
osg::Image* yawPitchWheelImg = osgDB::readImageFile( imgDir + "/YawPitchWheel.png" );
0 commit comments