File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -659,12 +659,12 @@ public static List<TreeViewItemData<ActionOrBindingData>> GetActionsAsTreeViewDa
659659
660660 private static int GetIdForGuid ( Guid guid , Dictionary < Guid , int > idDictionary )
661661 {
662- //This method is used to ensure that the same Guid always gets the same id
663- //We use getHashCode instead of a counter, as we cannot guarantee that the same Guid will always be added in the same order
664- //There is a tiny chance of a collision, but it is it does happen it will only affect the expanded state of the tree view
662+ // This method is used to ensure that the same Guid always gets the same id
663+ // We use getHashCode instead of a counter, as we cannot guarantee that the same Guid will always be added in the same order
664+ // There is a tiny chance of a collision, but it is it does happen it will only affect the expanded state of the tree view
665665 if ( ! idDictionary . TryGetValue ( guid , out var id ) )
666666 {
667- id = guid . GetHashCode ( ) ; //idDictionary.Values.Count > 0 ? idDictionary.Values.Max() + 1 : 0;
667+ id = guid . GetHashCode ( ) ;
668668 idDictionary . Add ( guid , id ) ;
669669 }
670670 return id ;
You can’t perform that action at this time.
0 commit comments