mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 12:23:53 +00:00
Fix copy constructor issue
This commit is contained in:
parent
c442af09c5
commit
4a9b37aa53
1 changed files with 3 additions and 1 deletions
|
@ -260,10 +260,12 @@ namespace SceneUtil
|
||||||
|
|
||||||
LightSource::LightSource(const LightSource ©, const osg::CopyOp ©op)
|
LightSource::LightSource(const LightSource ©, const osg::CopyOp ©op)
|
||||||
: 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue