tahoma2d/toonz/sources/common/tparam/tstepparam.cpp
Toshihiro Shimizu 890dddabbd first commit
2016-03-19 02:57:51 +09:00

48 lines
1.1 KiB
C++

#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;
}
//------------------------------------------------------------------------------
*/