dont add labelproperty for globes with no labels;

This commit is contained in:
Micah Acinapura
2019-05-19 10:38:27 -04:00
parent 58153ebe91
commit 8ae5016556

View File

@@ -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();