Arrows in wave vector ctrl now match world and clouds. North at the top and East to the right.
parent
c5283f63ab
commit
616b1e8ec1
|
|
@ -143,9 +143,9 @@ void LLPanelSettingsWaterMainTab::refresh()
|
|||
getChild<LLUICtrl>(FIELD_WATER_FOG_DENSITY)->setValue(mWaterSettings->getWaterFogDensity());
|
||||
getChild<LLUICtrl>(FIELD_WATER_UNDERWATER_MOD)->setValue(mWaterSettings->getFogMod());
|
||||
mTxtNormalMap->setValue(mWaterSettings->getNormalMapID());
|
||||
LLVector2 vect2 = mWaterSettings->getWave1Dir();
|
||||
LLVector2 vect2 = mWaterSettings->getWave1Dir() * -1.0; // Flip so that north and east are +
|
||||
getChild<LLUICtrl>(FIELD_WATER_WAVE1_XY)->setValue(vect2.getValue());
|
||||
vect2 = mWaterSettings->getWave2Dir();
|
||||
vect2 = mWaterSettings->getWave2Dir() * -1.0; // Flip so that north and east are +
|
||||
getChild<LLUICtrl>(FIELD_WATER_WAVE2_XY)->setValue(vect2.getValue());
|
||||
LLVector3 vect3 = mWaterSettings->getNormalScale();
|
||||
getChild<LLUICtrl>(FIELD_WATER_NORMAL_SCALE_X)->setValue(vect3[0]);
|
||||
|
|
@ -188,6 +188,7 @@ void LLPanelSettingsWaterMainTab::onNormalMapChanged()
|
|||
void LLPanelSettingsWaterMainTab::onLargeWaveChanged()
|
||||
{
|
||||
LLVector2 vect(getChild<LLUICtrl>(FIELD_WATER_WAVE1_XY)->getValue());
|
||||
vect *= -1.0; // Flip so that north and east are -
|
||||
LL_WARNS("LAPRAS") << "Changing Large Wave from " << mWaterSettings->getWave1Dir() << " -> " << vect << LL_ENDL;
|
||||
mWaterSettings->setWave1Dir(vect);
|
||||
setIsDirty();
|
||||
|
|
@ -196,6 +197,7 @@ void LLPanelSettingsWaterMainTab::onLargeWaveChanged()
|
|||
void LLPanelSettingsWaterMainTab::onSmallWaveChanged()
|
||||
{
|
||||
LLVector2 vect(getChild<LLUICtrl>(FIELD_WATER_WAVE2_XY)->getValue());
|
||||
vect *= -1.0; // Flip so that north and east are -
|
||||
LL_WARNS("LAPRAS") << "Changing Small Wave from " << mWaterSettings->getWave2Dir() << " -> " << vect << LL_ENDL;
|
||||
mWaterSettings->setWave2Dir(vect);
|
||||
setIsDirty();
|
||||
|
|
|
|||
Loading…
Reference in New Issue