Changed: #1171 OVQT weather & sun color dock window

This commit is contained in:
aquiles 2010-11-07 19:33:26 +01:00
parent eca4acbe49
commit 8d2ac20699
3 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ void CGlobalWindDialog::setWndPower(int value)
void CGlobalWindDialog::updateWnd(bool visible) void CGlobalWindDialog::updateWnd(bool visible)
{ {
if (!visible) if (!visible || !Modules::objView().getScene())
return; return;
_ui.horizontalSlider->setValue(int(Modules::objView().getScene()->getGlobalWindPower() * _ui.horizontalSlider->maximum())); _ui.horizontalSlider->setValue(int(Modules::objView().getScene()->getGlobalWindPower() * _ui.horizontalSlider->maximum()));

View file

@ -57,7 +57,7 @@ CObjectViewer::CObjectViewer()
_phi(0), _psi(0),_dist(20), _phi(0), _psi(0),_dist(20),
_CameraFocal(75), _CameraFocal(75),
_CurrentInstance(""), _CurrentInstance(""),
_BloomEffect(false) _BloomEffect(false), _Scene(0)
{ {
} }

View file

@ -45,7 +45,7 @@ CSunColorDialog::~CSunColorDialog()
void CSunColorDialog::updateSunColor(bool visible) void CSunColorDialog::updateSunColor(bool visible)
{ {
if (!visible) if (!visible || !Modules::objView().getScene())
return; return;
_ui.ambientWidget->setColor(Modules::objView().getScene()->getSunAmbient()); _ui.ambientWidget->setColor(Modules::objView().getScene()->getSunAmbient());