make NodeOutputOrphan referenceable

The removed output need to be referencable so if its parent module is
also being remove, the removal happens in the correct order.
This commit is contained in:
James Bardin 2017-11-09 10:52:46 -05:00
parent e0ad3300c6
commit e3ea3150ae
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ func (n *NodeOutputOrphan) Name() string {
return result
}
// GraphNodeReferenceable
func (n *NodeOutputOrphan) ReferenceableName() []string {
return []string{"output." + n.OutputName}
}
// GraphNodeSubPath
func (n *NodeOutputOrphan) Path() []string {
return n.PathValue