Fixed indentation, replaced dynamic_cast<> with static_cast<> as we know the type and add check against null pointers
Fixed indentation, replaced dynamic_cast<> with static_cast<> as we know the type and add check against null pointers

openscenegraph/osg,jtorresfabra/osg,tomasthoresen/osg,openscenegraph/osg,marchelbling/osg,scrawl/osg,marchelbling/osg,jtorresfabra/osg,scrawl/osg,tomasthoresen/osg,tomasthoresen/osg,tomasthoresen/osg,scrawl/osg,marchelbling/osg,scrawl/osg,marchelbling/osg,jtorresfabra/osg,jtorresfabra/osg,openscenegraph/osg,openscenegraph/osg