Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class InspectorView : GraphSubWindow

Label m_MaxItemsMessageLabel;

internal static bool forceNodeView = true;

void RegisterPropertyDrawer(Type newPropertyDrawerType)
{
if (typeof(IPropertyDrawer).IsAssignableFrom(newPropertyDrawerType) == false)
Expand Down Expand Up @@ -132,7 +134,7 @@ public void Update()
if (m_CurrentlyInspectedElementsCount == k_InspectorElementLimit)
m_NodeSettingsContainer.Add(m_MaxItemsMessageLabel);
}
if (anySelectables)
if (anySelectables && forceNodeView)
{
// 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ void ChangeTargetSettings()

graph.UpdateActiveBlocks(activeBlocks);
this.m_PreviewManagerUpdateDelegate();
Inspector.InspectorView.forceNodeView = false;
this.m_InspectorUpdateDelegate();
Inspector.InspectorView.forceNodeView = true;
}

void ChangePrecision(GraphPrecision newGraphDefaultPrecision)
Expand Down