Exemple #1
0
 void SetPreviewExpandedStateOnSelection(bool state)
 {
     // If selected, expand/collapse the other applicable nodes that are also selected
     if (selected)
     {
         m_GraphView.SetPreviewExpandedForSelectedNodes(state);
     }
     else
     {
         node.owner.owner.RegisterCompleteObjectUndo(state ? "Expand Previews" : "Collapse Previews");
         node.previewExpanded = state;
     }
 }