added clone functions for nodes
Since nodes are are extremely derivative types, we use a clone/copy function to produce new types of the derived class easily.
This commit is contained in:
@@ -31,6 +31,11 @@ SolidGenerator::SolidGenerator() :
|
||||
AddParameter(texture_output_);
|
||||
}
|
||||
|
||||
Node *SolidGenerator::copy()
|
||||
{
|
||||
return new SolidGenerator();
|
||||
}
|
||||
|
||||
QString SolidGenerator::Name()
|
||||
{
|
||||
return tr("Solid");
|
||||
|
||||
Reference in New Issue
Block a user