Skip to content

Commit

Permalink
octree: Only draw culled drawables when not in external view.
Browse files Browse the repository at this point in the history
Signed-off-by: Squareys <[email protected]>
  • Loading branch information
Squareys committed Sep 16, 2016
1 parent 43beab1 commit 6ced55e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/octree/OctreeExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ void OctreeExample::drawEvent() {
_culledDrawables.cull(_camera);

_activeCamera->draw(_culledDrawables);
_activeCamera->draw(_drawables);

if(_activeCamera == &_viewer) {
_activeCamera->draw(_drawables);
}
if(_visualizeOctree) {
_activeCamera->draw(_octreeVisualization);
}
Expand Down

0 comments on commit 6ced55e

Please sign in to comment.