|
|
|
|
|
|
allowAlwaysRepaint = !allowAlwaysRepaint; |
|
|
|
} |
|
|
|
|
|
|
|
public void ChangeSelction(Object newSelection) |
|
|
|
public void ChangeSelection(Object newSelection) |
|
|
|
{ |
|
|
|
if (!EditorUtility.IsPersistent(newSelection)) |
|
|
|
return; |
|
|
|
|
|
|
source.Initialize(inMemoryAsset, this); |
|
|
|
m_GraphEditorView.presenter = source; |
|
|
|
|
|
|
|
//m_GraphView.StretchToParentSize();
|
|
|
|
titleContent = new GUIContent(selected.name); |
|
|
|
|
|
|
|
/*if (refocus) |
|
|
|
{ |
|
|
|
focused = false; |
|
|
|
m_GraphEditorDrawer.graphView.Schedule (Focus).StartingIn (1).Until (() => focused); |
|
|
|
}*/ |
|
|
|
} |
|
|
|
} |
|
|
|
} |