When visible is false, don't render billboards/models overlays

This commit is contained in:
Atlante45 2014-07-11 11:28:08 -07:00
parent e067a013a0
commit 7ad90ac7bb
2 changed files with 8 additions and 0 deletions

View file

@ -20,6 +20,10 @@ BillboardOverlay::BillboardOverlay()
}
void BillboardOverlay::render() {
if (!_visible) {
return;
}
if (!_billboard.isEmpty()) {
if (!_billboardTexture) {
QImage image = QImage::fromData(_billboard);

View file

@ -35,6 +35,10 @@ void ModelOverlay::update(float deltatime) {
}
void ModelOverlay::render() {
if (!_visible) {
return;
}
if (_model.isActive()) {
if (_model.isRenderable()) {