Changed the copy constructor of for _light mem var to use a dynamic_cast<StateAttribute*>.
This commit is contained in:
parent
6a04fc3dee
commit
cdf63113f1
@ -21,7 +21,7 @@ class SG_EXPORT LightSource : public Group
|
||||
LightSource(const LightSource& ls, const CopyOp& copyop=CopyOp::SHALLOW_COPY):
|
||||
Group(ls,copyop),
|
||||
_value(ls._value),
|
||||
_light(dynamic_cast<osg::Light*>(copyop(ls._light.get()))) {}
|
||||
_light(dynamic_cast<osg::StateAttribute*>(copyop(ls._light.get()))) {}
|
||||
|
||||
META_Node(osg, LightSource);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user