mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-01 03:41:33 +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
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue