created timeline block node
This commit is contained in:
@@ -23,16 +23,24 @@
|
||||
Block::Block()
|
||||
{
|
||||
previous_input_ = new NodeInput();
|
||||
previous_input_->add_data_input(NodeParam::kBlock);
|
||||
AddParameter(previous_input_);
|
||||
|
||||
previous_output_ = new NodeOutput();
|
||||
previous_output_->set_data_type(NodeParam::kBlock);
|
||||
AddParameter(previous_output_);
|
||||
|
||||
next_input_ = new NodeInput();
|
||||
next_input_->add_data_input(NodeParam::kBlock);
|
||||
AddParameter(next_input_);
|
||||
|
||||
next_output_ = new NodeOutput();
|
||||
next_output_->set_data_type(NodeParam::kBlock);
|
||||
AddParameter(next_output_);
|
||||
|
||||
texture_output_ = new NodeOutput();
|
||||
texture_output_->set_data_type(NodeParam::kTexture);
|
||||
AddParameter(texture_output_);
|
||||
}
|
||||
|
||||
QString Block::Category()
|
||||
@@ -78,3 +86,8 @@ void Block::Process(const rational &time)
|
||||
previous_output_->set_value(PtrToValue(this));
|
||||
next_output_->set_value(PtrToValue(this));
|
||||
}
|
||||
|
||||
NodeOutput *Block::texture_output()
|
||||
{
|
||||
return texture_output_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user