Removed the usage of assert to prevent associated compile warnings and to clean up code
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <osg/ref_ptr>
|
||||
#include <osgAnimation/Keyframe>
|
||||
#include <osgAnimation/Interpolator>
|
||||
#include <osgAnimation/Assert>
|
||||
|
||||
namespace osgAnimation
|
||||
{
|
||||
@@ -65,13 +64,11 @@ namespace osgAnimation
|
||||
|
||||
float getStartTime() const
|
||||
{
|
||||
OSGANIMATION_ASSERT(_keyframes.valid() && !_keyframes->empty() && "no keyframes");
|
||||
return _keyframes->front().getTime();
|
||||
}
|
||||
|
||||
float getEndTime() const
|
||||
{
|
||||
OSGANIMATION_ASSERT(_keyframes.valid() && !_keyframes->empty() && "no keyframes");
|
||||
return _keyframes->back().getTime();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user