implemented support for multilayered keyframes
This adds the ability to keyframe more than one value per input (e.g. a vec2, vec3, etc.) so that you can animate, for example, an X axis separately from a Y axis.
This commit is contained in:
@@ -114,8 +114,10 @@ void CurveWidget::SetInput(NodeInput *input)
|
||||
connect(input_, &NodeInput::KeyframeAdded, view_, &CurveView::AddKeyframe);
|
||||
connect(input_, &NodeInput::KeyframeRemoved, view_, &CurveView::RemoveKeyframe);
|
||||
|
||||
foreach (NodeKeyframePtr key, input_->keyframes()) {
|
||||
view_->AddKeyframe(key);
|
||||
foreach (const NodeInput::KeyframeTrack& track, input_->keyframe_tracks()) {
|
||||
foreach (NodeKeyframePtr key, track) {
|
||||
view_->AddKeyframe(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user