Fix: InlineObjectField's allowSceneObjects is invalid

This commit is contained in:
AnnulusGames 2024-02-19 11:03:08 +09:00
parent 2cc974d676
commit 317143030d

View File

@ -34,7 +34,7 @@ namespace Alchemy.Editor.Elements
{
label = ObjectNames.NicifyVariableName(property.displayName),
objectType = type,
allowSceneObjects = property.GetFieldInfo().HasCustomAttribute<AssetsOnlyAttribute>(),
allowSceneObjects = !property.GetFieldInfo().HasCustomAttribute<AssetsOnlyAttribute>(),
value = property.objectReferenceValue
};
field.style.position = Position.Absolute;