Skip to content

Commit ecbd2da

Browse files
mbernasocchipka
authored andcommitted
FIXED ALL issues regarding elevationDatasourceChanges and globeClosed signals
1 parent 8f40cd8 commit ecbd2da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/globe/globe_plugin.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ void GlobePlugin::run()
132132
osgViewer::Viewer viewer;
133133
#endif
134134

135+
mIsGlobeRunning = true;
135136
setupProxy();
136137

137138
// install the programmable manipulator.
@@ -165,7 +166,6 @@ void GlobePlugin::run()
165166
viewer.run();
166167
#endif
167168

168-
mIsGlobeRunning = true;
169169
}
170170

171171
void GlobePlugin::settings()
@@ -607,8 +607,8 @@ typedef std::list< osg::ref_ptr<VersionedTile> > TileList;
607607

608608
void GlobePlugin::layersChanged()
609609
{
610-
QgsDebugMsg( "layersChanged" );
611610
if ( mIsGlobeRunning ){
611+
QgsDebugMsg( "layersChanged: Globe Running, executing" );
612612
osg::ref_ptr<Map> map = mMapNode->getMap();
613613

614614
if( map->getImageMapLayers().size() > 1 || map->getHeightFieldMapLayers().size() > 1)
@@ -679,7 +679,7 @@ void GlobePlugin::layersChanged()
679679
}
680680
else
681681
{
682-
QgsDebugMsg( "EXITING layersChanged, globe not running" );
682+
QgsDebugMsg( "layersChanged: Globe NOT running, skipping" );
683683
return;
684684
}
685685
}

0 commit comments

Comments
 (0)