mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 04:31:08 -06:00
dont add labelproperty for globes with no labels;
This commit is contained in:
@@ -563,8 +563,11 @@ RenderableGlobe::RenderableGlobe(const ghoul::Dictionary& dictionary)
|
||||
}
|
||||
|
||||
void RenderableGlobe::initializeGL() {
|
||||
_globeLabelsComponent.initialize(_labelsDictionary, this);
|
||||
addPropertySubOwner(_globeLabelsComponent);
|
||||
|
||||
if (!_labelsDictionary.empty()) {
|
||||
_globeLabelsComponent.initialize(_labelsDictionary, this);
|
||||
addPropertySubOwner(_globeLabelsComponent);
|
||||
}
|
||||
|
||||
_layerManager.update();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user