Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
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
1 change: 1 addition & 0 deletions com.unity.shadergraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed an issue where a requirement was placed on a fixed-function emission property [1319637]
- Fixed default shadergraph precision so it matches what is displayed in the graph settings UI (single) [1325934]
- Fixed an unhelpful error message when custom function nodes didn't have a valid file [1323493].
- Fixed a bug where changing a Target setting would switch the inspector view to the Node Settings tab if any nodes were selected.
- Fixed "Disconnect All" option being grayed out on stack blocks [1313201].
- Fixed how shadergraph's prompt for "unsaved changes" was handled to fix double messages and incorrect window sizes [1319623].
- Fixed an issue where generated property reference names could conflict with Shader Graph reserved keywords [1328762] (https://issuetracker.unity3d.com/product/unity/issues/guid/1328762/)
Expand Down
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