Skip to content

Commit

Permalink
fix(Data): block custom list editor if ignore custom inspect is set
Browse files Browse the repository at this point in the history
The custom Observable List Editor should also be blocked if the
ZINNIA_IGNORE_CUSTOM_INSPECTOR_EDITOR ifdef is set otherwise it will
throw an error becaue it will try and inherit from a class that does
not get created in those circumstances.
  • Loading branch information
thestonefox committed May 11, 2024
1 parent acc3b49 commit 774c112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/Data/Collection/ObservableListEditor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Zinnia.Unity.Editor.Data.Collection
{
#if (UNITY_2020_3_OR_NEWER && !ZINNIA_USE_CUSTOM_LIST_EDITOR) || ZINNIA_IGNORE_CUSTOM_LIST_EDITOR
#if (UNITY_2020_3_OR_NEWER && !ZINNIA_USE_CUSTOM_LIST_EDITOR) || ZINNIA_IGNORE_CUSTOM_LIST_EDITOR || ZINNIA_IGNORE_CUSTOM_INSPECTOR_EDITOR
/// Ignore this custom list editor in Unity 2020.3 or above as it breaks with Unity 2020.3.24f due to other fixes within Unity.
/// It can still be forced to use the custom editor if the Scripting Define Symbol of `ZINNIA_USE_CUSTOM_LIST_EDITOR` is added but the list won't be collapsible.
/// It can also be completely turned off if the Scripting Define Symbol of `ZINNIA_IGNORE_CUSTOM_LIST_EDITOR` is added.
Expand Down

0 comments on commit 774c112

Please sign in to comment.