Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[globe] Add path to gui images when running from build directory
  • Loading branch information
dakcarto committed Sep 11, 2013
1 parent ba4e438 commit ebc1573
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/globe/globe_plugin.cpp
Expand Up @@ -496,8 +496,11 @@ void GlobePlugin::syncExtent()

void GlobePlugin::setupControls()
{

std::string imgDir = QDir::cleanPath( QgsApplication::pkgDataPath() + "/globe/gui" ).toStdString();
if ( QgsApplication::isRunningFromBuildDir() )
{
imgDir = QDir::cleanPath( QgsApplication::buildSourcePath() + "/src/plugins/globe/images/gui" ).toStdString();
}
osgEarth::Util::EarthManipulator* manip = dynamic_cast<osgEarth::Util::EarthManipulator*>( mOsgViewer->getCameraManipulator() );

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

0 comments on commit ebc1573

Please sign in to comment.