mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 09:58:02 +08:00
Allow for inherited flags attributes
This commit is contained in:
1 parent
f203ae37fc
commit
8c6202c194
1 file changed
+1
-1
@@ -135,7 +135,7 @@ namespace Explorer
|
||||
}
|
||||
else if (valueType.IsEnum)
|
||||
{
|
||||
if (valueType.GetCustomAttributes(typeof(FlagsAttribute), false) is object[] attributes && attributes.Length > 0)
|
||||
if (valueType.GetCustomAttributes(typeof(FlagsAttribute), true) is object[] attributes && attributes.Length > 0)
|
||||
{
|
||||
holder = new CacheEnumFlags();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user