implement keyframe track separation in curve view

This commit is contained in:
itsmattkc
2021-01-24 12:09:00 +11:00
parent 4dd2b64c6d
commit b68397d687
8 changed files with 291 additions and 166 deletions
+5
View File
@@ -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);
}
}
+13
View File
@@ -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