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:
commit
6c1ac9ed9f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user