Make sure the orbit distance is within the acceptable range.
| 425 | |
| 426 | // Make sure the orbit distance is within the acceptable range. |
| 427 | void GuiMaterialPreview::setOrbitDistance(F32 distance) |
| 428 | { |
| 429 | mOrbitDist = mClampF(distance, mMinOrbitDist, mMaxOrbitDist); |
| 430 | } |
| 431 | |
| 432 | // This function is meant to be used with a button to put everything back to default settings. |
| 433 | void GuiMaterialPreview::resetViewport() |
no test coverage detected