Refactored Clips into a base class called ClipBase. Effects and Clips use this base class, which allows them to be positioned and layered on the timeline. Also fixed a regression in Coordinate, which was not properly setting instance variables.

This commit is contained in:
Jonathan Thomas
2013-10-01 15:22:25 -05:00
parent 79dc95a054
commit 1127a0f3ba
11 changed files with 135 additions and 29 deletions

View File

@@ -233,7 +233,7 @@ bool Keyframe::IsIncreasing(int index)
// return the maximum value
return int(round(Values[Values.size() - 1].IsIncreasing()));
else
// return a blank coordinate (0,0)
// return the default direction of most curves (i.e. increasing is true)
return true;
}
@@ -430,6 +430,7 @@ void Keyframe::Process() {
// Loop forward and look for the next unique value (to determine direction)
for (vector<Coordinate>::iterator direction_it = it + 1; direction_it != Values.end(); direction_it++) {
int next = int(round((*direction_it).Y));
// Detect direction
if (current_value < next)
{