Actually call render on zone entities from tree

This commit is contained in:
Atlante45 2015-05-05 17:20:27 +02:00
parent 40295ab04e
commit 46cd1f458b

View file

@ -641,8 +641,7 @@ void EntityTreeRenderer::renderElement(OctreeElement* element, RenderArgs* args)
if (entityItem->isVisible()) {
// NOTE: Zone Entities are a special case we handle here... Zones don't render
// like other entity types. So we will skip the normal rendering tests
// NOTE: Zone Entities are a special case we handle here...
if (entityItem->getType() == EntityTypes::Zone) {
if (entityItem->contains(_viewState->getAvatarPosition())) {
float entityVolumeEstimate = entityItem->getVolumeEstimate();
@ -663,7 +662,8 @@ void EntityTreeRenderer::renderElement(OctreeElement* element, RenderArgs* args)
}
}
}
} else {
}
// render entityItem
AABox entityBox = entityItem->getAABox();
@ -695,7 +695,6 @@ void EntityTreeRenderer::renderElement(OctreeElement* element, RenderArgs* args)
}
}
}
}
}
float EntityTreeRenderer::getSizeScale() const {