removed last of the NodeOutput dependencies
Since all Nodes have an output that provides all output values now, we now never need to add an output from a Node derivative. These changes remove the last of them and disable the ability to add more outputs from a derivative.
This commit is contained in:
@@ -25,7 +25,7 @@ SolidGenerator::SolidGenerator() :
|
||||
{
|
||||
color_input_ = new NodeInput("color_in");
|
||||
color_input_->set_data_type(NodeParam::kColor);
|
||||
AddParameter(color_input_);
|
||||
AddInput(color_input_);
|
||||
}
|
||||
|
||||
Node *SolidGenerator::copy() const
|
||||
@@ -55,7 +55,6 @@ QString SolidGenerator::Description() const
|
||||
|
||||
QString SolidGenerator::Code() const
|
||||
{
|
||||
// FIXME: Not color managed
|
||||
return "#version 110\n"
|
||||
"\n"
|
||||
"uniform vec4 color_in;\n"
|
||||
@@ -64,3 +63,8 @@ QString SolidGenerator::Code() const
|
||||
" gl_FragColor = color_in;\n"
|
||||
"}\n";
|
||||
}
|
||||
|
||||
void SolidGenerator::Retranslate()
|
||||
{
|
||||
color_input_->set_name(tr("Color"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user