Skip to content
Permalink
Browse files

[globe] Add path to gui images when running from build directory

  • Loading branch information
dakcarto committed Sep 11, 2013
1 parent ba4e438 commit ebc1573f871fe009d7658fb36df36648279900b6
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/plugins/globe/globe_plugin.cpp
@@ -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" );

0 comments on commit ebc1573

Please sign in to comment.
You can’t perform that action at this time.