1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 03:53:54 +00:00

Fix water ripple height

This commit is contained in:
scrawl 2015-06-17 22:49:20 +02:00
parent 6e5f3339ad
commit 0ffa1f964b

View file

@ -159,6 +159,8 @@ void Water::setHeight(const float height)
{
mTop = height;
mSimulation->setWaterHeight(height);
osg::Vec3f pos = mWaterNode->getPosition();
pos.z() = height;
mWaterNode->setPosition(pos);