public void Update(InspectorUpdateSource inspectorUpdateSource) { ShowGraphSettings_Internal(m_GraphSettingsContainer); m_NodeSettingsContainer.Clear(); try { bool anySelectables = false; foreach (var selectable in selection) { if (selectable is IInspectable inspectable) { DrawInspectable(m_NodeSettingsContainer, inspectable); anySelectables = true; } } if (anySelectables && inspectorUpdateSource != InspectorUpdateSource.GraphSettingsChange) { // Anything selectable in the graph (GraphSettings not included) is only ever interacted with through the // Node Settings tab so we can make the assumption they want to see that tab m_GraphInspectorView.Activate(m_GraphInspectorView.Q <TabButton>("NodeSettingsButton")); } } catch (Exception e) { Debug.LogError(e); } // Store this for update checks later, copying list deliberately as we dont want a reference m_CachedSelectionList = new List <ISelectable>(selection); m_NodeSettingsContainer.MarkDirtyRepaint(); }
void TriggerInspectorUpdate(InspectorUpdateSource inspectorUpdateSource = InspectorUpdateSource.PropertyInspection) { Update(inspectorUpdateSource); }