tahoma2d/toonz/sources/common/tparam/tstepparam.cpp

49 lines
1.1 KiB
C++
Raw Normal View History

2016-03-19 06:57:51 +13:00
#include "tstepparam.h"
//
// OBSOLETO??
//
/*
PERSIST_IDENTIFIER(TDoubleStepParam, "doubleStepParam")
//------------------------------------------------------------------------------
TDoubleStepParam::TDoubleStepParam(double v)
: TDoubleParam(v)
{}
//------------------------------------------------------------------------------
TDoubleStepParam::TDoubleStepParam(const TDoubleParam &src)
: TDoubleParam(src)
{}
//------------------------------------------------------------------------------
TDoubleStepParam::~TDoubleStepParam()
{}
//------------------------------------------------------------------------------
double TDoubleStepParam::getValue(double frame, bool cropped) const
{
if (getKeyframeCount() == 0)
return getDefaultValue();
if(isKeyframe(frame))
return TDoubleParam::getValue(frame);
int index = getPrevKeyframe(frame);
if (index != -1)
return getKeyframe(index).m_value;
else
return getKeyframe(0).m_value;
}
//------------------------------------------------------------------------------
*/