Added handling or null dynamic_cast

This commit is contained in:
Robert Osfield
2016-06-24 11:49:14 +01:00
parent 59bbb6ac77
commit f42f6e4fb9

View File

@@ -356,7 +356,7 @@ bool OrbitManipulator::startAnimationByMousePointerIntersection(
return false;
OrbitAnimationData *ad = dynamic_cast< OrbitAnimationData*>( _animationData.get() );
assert( ad );
if (!ad) return false;
// setup animation data and restore original transformation
ad->start( osg::Vec3d(_center) - prevCenter, ea.getTime() );