Two small bug fixes
Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1689,8 +1689,6 @@ void Application::init() { · 1688 unmodified lines | |||
| 1689 | _headMouseX = _mouseX = _glWidget->width() / 2; | 1689 | _headMouseX = _mouseX = _glWidget->width() / 2; |
| 1690 | _headMouseY = _mouseY = _glWidget->height() / 2; | 1690 | _headMouseY = _mouseY = _glWidget->height() / 2; |
| 1691 | 1691 | ||
| 1692 | _stars.readInput(STAR_FILE, STAR_CACHE_FILE, 0); | ||
| 1693 | |||
| 1694 | _myAvatar.init(); | 1692 | _myAvatar.init(); |
| 1695 | _myAvatar.setPosition(START_LOCATION); | 1693 | _myAvatar.setPosition(START_LOCATION); |
| 1696 | _myCamera.setMode(CAMERA_MODE_FIRST_PERSON); | 1694 | _myCamera.setMode(CAMERA_MODE_FIRST_PERSON); |
| @@ -1716,7 +1714,6 @@ void Application::init() { · 19 unmodified lines | |||
| 1716 | 1714 | ||
| 1717 | printLog("Loaded settings.\n"); | 1715 | printLog("Loaded settings.\n"); |
| 1718 | 1716 | ||
| 1719 | |||
| 1720 | sendAvatarVoxelURLMessage(_myAvatar.getVoxels()->getVoxelURL()); | 1717 | sendAvatarVoxelURLMessage(_myAvatar.getVoxels()->getVoxelURL()); |
| 1721 | 1718 | ||
| 1722 | _palette.init(_glWidget->width(), _glWidget->height()); | 1719 | _palette.init(_glWidget->width(), _glWidget->height()); |
| @@ -2290,6 +2287,9 @@ void Application::displaySide(Camera& whichCamera) { · 567 unmodified lines | |||
| 2290 | glMateriali(GL_FRONT, GL_SHININESS, 96); | 2287 | glMateriali(GL_FRONT, GL_SHININESS, 96); |
| 2291 | 2288 | ||
| 2292 | if (_renderStarsOn->isChecked()) { | 2289 | if (_renderStarsOn->isChecked()) { |
| 2290 | if (!_stars.getFileLoaded()) { | ||
| 2291 | _stars.readInput(STAR_FILE, STAR_CACHE_FILE, 0); | ||
| 2292 | } | ||
| 2293 | // should be the first rendering pass - w/o depth buffer / lighting | 2293 | // should be the first rendering pass - w/o depth buffer / lighting |
| 2294 | 2294 | ||
| 2295 | // compute starfield alpha based on distance from atmosphere | 2295 | // compute starfield alpha based on distance from atmosphere |