Changed the copy constructor of for _light mem var to use a dynamic_cast<StateAttribute*>.

This commit is contained in:
Robert Osfield 2002-08-03 19:37:32 +00:00
parent 6a04fc3dee
commit cdf63113f1

View File

@ -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);