Skip to content

Commit e521898

Browse files
committed
Fix selection still active when selecting nodes without inspector fields
1 parent 7c5d23a commit e521898

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/BaseGraphView.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -925,12 +925,9 @@ public void UpdateNodeInspectorSelection()
925925
selectedNodeViews.Add(v);
926926
}
927927

928-
if (selectedNodeViews.Count > 0)
929-
{
930-
nodeInspector.UpdateSelectedNodes(selectedNodeViews);
931-
if (Selection.activeObject != nodeInspector)
932-
Selection.activeObject = nodeInspector;
933-
}
928+
nodeInspector.UpdateSelectedNodes(selectedNodeViews);
929+
if (Selection.activeObject != nodeInspector && selectedNodeViews.Count > 0)
930+
Selection.activeObject = nodeInspector;
934931
}
935932

936933
public BaseNodeView AddNode(BaseNode node)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
### Fixed
1010
- Fixed fields with [Settings] attribute not showing up with inheritance.
11+
- Fixed selection still active when selecting nodes without inspector fields.
1112

1213
## [1.3.0]
1314

0 commit comments

Comments
 (0)