added some more timeline functions

This commit is contained in:
itsmattkc
2019-08-13 21:50:39 +10:00
parent 737442e513
commit 4f4737a395
21 changed files with 291 additions and 87 deletions
+13 -12
View File
@@ -29,6 +29,19 @@ ClipBlock::ClipBlock()
AddParameter(texture_input_);
}
Block *ClipBlock::copy()
{
ClipBlock* c = new ClipBlock();
// Duplicate connection
// FIXME: This behavior should probably be configurable
if (texture_input()->IsConnected()) {
NodeParam::ConnectEdge(texture_input()->edges().first()->output(), c->texture_input());
}
return new ClipBlock();
}
Block::Type ClipBlock::type()
{
return kClip;
@@ -49,18 +62,6 @@ QString ClipBlock::Description()
return tr("A time-based node that represents a media source.");
}
rational ClipBlock::length()
{
return length_;
}
void ClipBlock::set_length(const rational &length)
{
length_ = length;
RefreshFollowing();
}
NodeInput *ClipBlock::texture_input()
{
return texture_input_;