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

Fix copy constructor issue

This commit is contained in:
scrawl 2015-12-04 18:08:14 +01:00
parent c442af09c5
commit 4a9b37aa53

View file

@ -260,10 +260,12 @@ namespace SceneUtil
LightSource::LightSource(const LightSource &copy, const osg::CopyOp &copyop) LightSource::LightSource(const LightSource &copy, const osg::CopyOp &copyop)
: osg::Node(copy, copyop) : osg::Node(copy, copyop)
, mLight(copy.mLight)
, mRadius(copy.mRadius) , mRadius(copy.mRadius)
{ {
mId = sLightId++; mId = sLightId++;
for (int i=0; i<2; ++i)
mLight[i] = osg::clone(copy.mLight[i].get(), copyop);
} }