forked from mirror/openmw-tes3mp
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)
|
||||
: osg::Node(copy, copyop)
|
||||
, mLight(copy.mLight)
|
||||
, mRadius(copy.mRadius)
|
||||
{
|
||||
mId = sLightId++;
|
||||
|
||||
for (int i=0; i<2; ++i)
|
||||
mLight[i] = osg::clone(copy.mLight[i].get(), copyop);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue