@ -50,7 +50,7 @@ void CGlobalWindDialog::setWndPower(int value)
void CGlobalWindDialog::updateWnd(bool visible)
{
if (!visible)
if (!visible || !Modules::objView().getScene())
return;
_ui.horizontalSlider->setValue(int(Modules::objView().getScene()->getGlobalWindPower() * _ui.horizontalSlider->maximum()));
@ -57,7 +57,7 @@ CObjectViewer::CObjectViewer()
_phi(0), _psi(0),_dist(20),
_CameraFocal(75),
_CurrentInstance(""),
_BloomEffect(false)
_BloomEffect(false), _Scene(0)
}
@ -45,7 +45,7 @@ CSunColorDialog::~CSunColorDialog()
void CSunColorDialog::updateSunColor(bool visible)
_ui.ambientWidget->setColor(Modules::objView().getScene()->getSunAmbient());