[NonSerialized]
bool m_HasError ;
[NonSerialized]
public bool forceRedrawPreviews = false ;
GraphEditorView m_GraphEditorView ;
GraphEditorView graphEditorView
m_GraphEditorView . RemoveFromHierarchy ( ) ;
m_GraphEditorView . Dispose ( ) ;
}
m_GraphEditorView = value ;
if ( m_GraphEditorView ! = null )
{
graphEditorView = new GraphEditorView ( this , materialGraph , asset . name ) { persistenceKey = selectedGuid } ;
}
if ( forceRedrawPreviews )
{
// Redraw all previews
foreach ( INode node in m_GraphObject . graph . GetNodes < INode > ( ) )
node . Dirty ( ModificationScope . Node ) ;
forceRedrawPreviews = false ;
}
graphEditorView . HandleGraphChanges ( ) ;
graphObject . graph . ClearChanges ( ) ;
}
Undo . ClearUndo ( graphObject ) ;
DestroyImmediate ( graphObject ) ;
}
graphEditorView = null ;
}
var inputSlotRef = new SlotReference ( remappedInputNodeGuid , inputSlot . slotId ) ;
subGraph . Connect ( outputSlotRef , inputSlotRef ) ;
}
// one edge needs to go to outside world
else if ( outputSlotExistsInSubgraph )
{