1435:b8dc3620e5db | 1436:241d3e452b32 |
---|---|
218 m_window->renderer()->setDrawPlane({}); | 218 m_window->renderer()->setDrawPlane({}); |
219 } | 219 } |
220 | 220 |
221 void ViewToolset::setCullDepth() | 221 void ViewToolset::setCullDepth() |
222 { | 222 { |
223 if (m_window->renderer()->camera() == Camera::Free) | 223 if (m_window->renderer()->camera() == gl::FreeCamera) |
224 return; | 224 return; |
225 | 225 |
226 bool ok; | 226 bool ok; |
227 double depth = QInputDialog::getDouble( | 227 double depth = QInputDialog::getDouble( |
228 m_window, | 228 m_window, |
230 format( | 230 format( |
231 tr("Cull depth for %1:\nPolygons closer than at this depth are not shown."), | 231 tr("Cull depth for %1:\nPolygons closer than at this depth are not shown."), |
232 m_window->renderer()->currentCamera().name() | 232 m_window->renderer()->currentCamera().name() |
233 ), | 233 ), |
234 m_window->renderer()->currentCullValue(), | 234 m_window->renderer()->currentCullValue(), |
235 -GLRenderer::far, | 235 -gl::far, |
236 GLRenderer::far, | 236 gl::far, |
237 4, | 237 4, |
238 &ok | 238 &ok |
239 ); | 239 ); |
240 | 240 |
241 if (ok) | 241 if (ok) |