nodes: implemented short name
Nodes can provide "short" names for use in the node graph, distinct from their full names shown everywhere else.
This commit is contained in:
@@ -116,6 +116,11 @@ void Node::Save(QXmlStreamWriter *writer, const QString &custom_name) const
|
||||
writer->writeEndElement(); // node
|
||||
}
|
||||
|
||||
QString Node::ShortName() const
|
||||
{
|
||||
return Name();
|
||||
}
|
||||
|
||||
QString Node::Category() const
|
||||
{
|
||||
// Return an empty category for any nodes that don't use one
|
||||
|
||||
Reference in New Issue
Block a user