mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Fix water ripple height
This commit is contained in:
parent
6e5f3339ad
commit
0ffa1f964b
@ -159,6 +159,8 @@ void Water::setHeight(const float height)
|
|||||||
{
|
{
|
||||||
mTop = height;
|
mTop = height;
|
||||||
|
|
||||||
|
mSimulation->setWaterHeight(height);
|
||||||
|
|
||||||
osg::Vec3f pos = mWaterNode->getPosition();
|
osg::Vec3f pos = mWaterNode->getPosition();
|
||||||
pos.z() = height;
|
pos.z() = height;
|
||||||
mWaterNode->setPosition(pos);
|
mWaterNode->setPosition(pos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user