Support more than 255 steps.

This commit is contained in:
leo
2014-07-06 06:04:09 +00:00
parent 1b79096bd4
commit 109ec00f5f
19 changed files with 516 additions and 501 deletions
+5 -5
View File
@@ -214,26 +214,26 @@ void lcLight::BoxTest(lcObjectBoxTest& ObjectBoxTest) const
}
}
void lcLight::Move(unsigned short nTime, bool AddKey, const lcVector3& Distance)
void lcLight::Move(lcStep Step, bool AddKey, const lcVector3& Distance)
{
if (IsSelected(LC_LIGHT_SECTION_POSITION))
{
mPosition += Distance;
ChangeKey(nTime, AddKey, mPosition, LC_LK_POSITION);
ChangeKey(Step, AddKey, mPosition, LC_LK_POSITION);
}
if (IsSelected(LC_LIGHT_SECTION_TARGET))
{
mTargetPosition += Distance;
ChangeKey(nTime, AddKey, mTargetPosition, LC_LK_TARGET);
ChangeKey(Step, AddKey, mTargetPosition, LC_LK_TARGET);
}
}
void lcLight::UpdatePosition(unsigned short nTime)
void lcLight::UpdatePosition(lcStep Step)
{
CalculateKeys(nTime);
CalculateKeys(Step);
if (IsPointLight())
{