Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1723,8 +1723,10 @@ int BufferRenderVisitor::visit(MetavoxelInfo& info) { · 1722 unmodified lines | ||
| 1723 | 1723 | } |
| 1724 | 1724 | |
| 1725 | 1725 | void DefaultMetavoxelRendererImplementation::render(MetavoxelData& data, MetavoxelInfo& info, const MetavoxelLOD& lod) { |
| 1726 | − SpannerRenderVisitor spannerRenderVisitor(lod); | |
| 1727 | − data.guide(spannerRenderVisitor); | |
| 1726 | + if (Menu::getInstance()->isOptionChecked(MenuOption::RenderSpanners)) { | |
| 1727 | + SpannerRenderVisitor spannerRenderVisitor(lod); | |
| 1728 | + data.guide(spannerRenderVisitor); | |
| 1729 | + } | |
| 1728 | 1730 | |
| 1729 | 1731 | Application::getInstance()->getTextureCache()->setPrimaryDrawBuffers(true, true); |
| 1730 | 1732 | |
| @@ -1953,7 +1955,7 @@ public: · 222 unmodified lines | ||
| 1953 | 1955 | void HeightfieldRenderer::render(bool cursor) { |
| 1954 | 1956 | // create the buffer objects lazily |
| 1955 | 1957 | Heightfield* heightfield = static_cast<Heightfield*>(_spanner); |
| 1956 | − if (!heightfield->getHeight() || !Menu::getInstance()->isOptionChecked(MenuOption::RenderHeightfields)) { | |
| 1958 | + if (!heightfield->getHeight()) { | |
| 1957 | 1959 | return; |
| 1958 | 1960 | } |
| 1959 | 1961 | int width = heightfield->getHeight()->getWidth(); |