summaryrefslogtreecommitdiff
path: root/indra/newview/llsurface.cpp
diff options
context:
space:
mode:
authorKyle Ambroff <ambroff@lindenlab.com>2010-10-29 19:52:01 -0700
committerKyle Ambroff <ambroff@lindenlab.com>2010-10-29 19:52:01 -0700
commitfa17864382a64c90e9106a54368386f6e4115d67 (patch)
tree7883e97e7bd4d3b0a7d9ac7a0096424e71e0c1ad /indra/newview/llsurface.cpp
parent4b49b0eff79c41060ba53d0d33ff83b4c18e277b (diff)
parent42b49397d2347b6a97394ce0b35efe5cc2ab44a2 (diff)
Merge with lindenlab/viewer-development
Diffstat (limited to 'indra/newview/llsurface.cpp')
-rw-r--r--indra/newview/llsurface.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llsurface.cpp b/indra/newview/llsurface.cpp
index af4d9fa7b9..6fc8153b77 100644
--- a/indra/newview/llsurface.cpp
+++ b/indra/newview/llsurface.cpp
@@ -1162,8 +1162,13 @@ void LLSurface::setWaterHeight(F32 height)
if (!mWaterObjp.isNull())
{
LLVector3 water_pos_region = mWaterObjp->getPositionRegion();
+ bool changed = water_pos_region.mV[VZ] != height;
water_pos_region.mV[VZ] = height;
mWaterObjp->setPositionRegion(water_pos_region);
+ if (changed)
+ {
+ LLWorld::getInstance()->updateWaterObjects();
+ }
}
else
{