Skip to content

Commit 124f866

Browse files
committed
Minor refactor changes
1 parent efef2eb commit 124f866

File tree

4 files changed

+1
-27
lines changed

4 files changed

+1
-27
lines changed

Assets/Editor Toolbox/Editor/ToolboxDrawerModule.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ internal static void InitializeModule()
4343
/// </summary>
4444
private static readonly Dictionary<string, ToolboxPropertyHandler> propertyHandlers = new Dictionary<string, ToolboxPropertyHandler>();
4545

46-
4746
/// <summary>
4847
/// Settings provided to handle custom drawers.
4948
/// </summary>
@@ -54,15 +53,14 @@ internal static void InitializeModule()
5453
/// </summary>
5554
private static bool validationEnabled = true;
5655

57-
5856
/// <summary>
5957
/// Creates all possible attribute-based drawers and add them to proper collections.
6058
/// </summary>
6159
private static void PrepareAssignableDrawers(IToolboxInspectorSettings settings)
6260
{
6361
void AddAttributeDrawer<T>(Type drawerType, Type attributeType, Dictionary<Type, T> drawersCollection) where T : ToolboxAttributeDrawer
6462
{
65-
if (drawerType == null)
63+
if (drawerType == null || attributeType == null)
6664
{
6765
return;
6866
}

Assets/Editor Toolbox/Runtime/Attributes/Regular.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Assets/Editor Toolbox/Runtime/Attributes/Special.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Assets/Editor Toolbox/Runtime/Attributes/Toolbox.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)