Added handling of null dynamic_cast<>

This commit is contained in:
Robert Osfield
2016-06-24 11:50:54 +01:00
parent f8dd3bc4c5
commit cdd1e3bf4c

View File

@@ -383,7 +383,7 @@ bool FirstPersonManipulator::startAnimationByMousePointerIntersection(
return false;
FirstPersonAnimationData *ad = dynamic_cast< FirstPersonAnimationData*>( _animationData.get() );
assert( ad );
if (!ad) return false;
// setup animation data and restore original transformation
ad->start( prevRot, _rotation, ea.getTime() );