1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Merge branch 'init_sky' into 'master'

Use an initialization list in WrapAroundOperator's constructor

See merge request OpenMW/openmw!1146
This commit is contained in:
Alexei Dobrohotov 2021-08-16 01:19:28 +00:00
commit 6c1ac9ed9f

View File

@ -1350,11 +1350,9 @@ void SkyManager::setCamera(osg::Camera *camera)
class WrapAroundOperator : public osgParticle::Operator
{
public:
WrapAroundOperator(osg::Camera *camera, const osg::Vec3 &wrapRange): osgParticle::Operator()
WrapAroundOperator(osg::Camera *camera, const osg::Vec3 &wrapRange): osgParticle::Operator(),
mCamera(camera), mWrapRange(wrapRange), mHalfWrapRange(mWrapRange / 2.0)
{
mCamera = camera;
mWrapRange = wrapRange;
mHalfWrapRange = mWrapRange / 2.0;
mPreviousCameraPosition = getCameraPosition();
}