Skip to content

Commit 5831213

Browse files
committed
fix: PR issues
1 parent 2245a3b commit 5831213

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141

4242
## [2.3.0]
4343
### Changed
44-
- Refactored CollectionCustomEditor to use UI Elements, getting rid of multiple hacks to make it work with the IMGUI and Reorderable list~~~~
44+
- Refactored CollectionCustomEditor to use UI Elements, getting rid of multiple hacks to make it work with the IMGUI and Reorderable list
4545
- Updated the visuals of the Collection Editor
4646
- Advanced Options are now exposed by default, giving more clarify of what is going on
4747
- Removed the editor only assets from the Collection (`generateAsPartialClass`, `generateAsBaseClass`, `generateAsStaticClass`), those are not stored on the SOCSettings file and versioned

Scripts/Editor/PropertyDrawers/CollectionItemPickerPropertyDrawer.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ public class CollectionItemPickerPropertyDrawer : PropertyDrawer
2323
private static GUIStyle buttonStyle;
2424
private float buttonHeight = EditorGUIUtility.singleLineHeight;
2525
private List<ScriptableObjectCollection> possibleCollections;
26-
private List<ScriptableObject> availableItems = new List<ScriptableObject>();
26+
private List<ScriptableObject> availableItems = new();
2727

28-
private HashSet<string> initializedPropertiesPaths = new HashSet<string>();
28+
private readonly HashSet<string> initializedPropertiesPaths = new();
2929

30-
private Dictionary<string, PopupList<PopupItem>> propertyPathToPopupList =
31-
new Dictionary<string, PopupList<PopupItem>>();
30+
private readonly Dictionary<string, PopupList<PopupItem>> propertyPathToPopupList = new();
3231

3332
private readonly struct PopupItem : IPopupListItem
3433
{

0 commit comments

Comments
 (0)