implement keyframe track separation in curve view
This commit is contained in:
@@ -834,4 +834,9 @@ QVariant NodeInput::StringToValue(const QString &string, QList<XMLNodeData::Foot
|
||||
return NodeValue::StringToValue(data_type_, string, true);
|
||||
}
|
||||
|
||||
uint qHash(const NodeInput::KeyframeTrackReference &ref, uint seed)
|
||||
{
|
||||
return qHash(ref.input, seed) ^ qHash(ref.element, seed) ^ qHash(ref.track, seed);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -338,6 +338,17 @@ public:
|
||||
return GetImmediate(element)->get_closest_keyframe_after_time(time);
|
||||
}
|
||||
|
||||
struct KeyframeTrackReference {
|
||||
NodeInput* input;
|
||||
int element;
|
||||
int track;
|
||||
|
||||
bool operator==(const KeyframeTrackReference& rhs) const
|
||||
{
|
||||
return input == rhs.input && element == rhs.element && track == rhs.track;
|
||||
}
|
||||
};
|
||||
|
||||
signals:
|
||||
void NameChanged(const QString& name);
|
||||
|
||||
@@ -471,6 +482,8 @@ private slots:
|
||||
|
||||
};
|
||||
|
||||
uint qHash(const NodeInput::KeyframeTrackReference& ref, uint seed = 0);
|
||||
|
||||
}
|
||||
|
||||
#endif // NODEINPUT_H
|
||||
|
||||
Reference in New Issue
Block a user