Added handling or null dynamic_cast
This commit is contained in:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user