keyframes: only update active frames even from curve and param editor
When adjusting a slider, keyframe time, or curve value, it is undesirable to re-cache the entire affected area while the user is still dragging UI objects. Since the video is unlikely to be playing, the priority must go to the currently active frame so the user gets visual feedback on the rendered image as soon as possible. This was implemented in some areas, but this commit should have that functionality in all areas.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
const NodeKeyframe::Type NodeKeyframe::kDefaultType = kLinear;
|
||||
|
||||
NodeKeyframe::NodeKeyframe(const rational &time, const QVariant &value, const NodeKeyframe::Type &type, const int &track) :
|
||||
parent_(nullptr),
|
||||
time_(time),
|
||||
value_(value),
|
||||
type_(type),
|
||||
@@ -131,3 +132,13 @@ NodeKeyframe::BezierType NodeKeyframe::get_opposing_bezier_type(NodeKeyframe::Be
|
||||
return kInHandle;
|
||||
}
|
||||
}
|
||||
|
||||
NodeInput *NodeKeyframe::parent() const
|
||||
{
|
||||
return parent_;
|
||||
}
|
||||
|
||||
void NodeKeyframe::set_parent(NodeInput *parent)
|
||||
{
|
||||
parent_ = parent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user