Skip to content

Commit

Permalink
Merge branch '294-fields-preceding-expandable-are-not-editable' of ht…
Browse files Browse the repository at this point in the history
…tps://github.com/rhys-vdw/NaughtyAttributes into rhys-vdw-294-fields-preceding-expandable-are-not-editable
  • Loading branch information
dbrizov committed Feb 6, 2022
2 parents 44b6f95 + 5811f9b commit 7cddf69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ protected override float GetPropertyHeight_Internal(SerializedProperty property,
protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label)
{
EditorGUI.BeginProperty(rect, label, property);
property.serializedObject.Update();

if (property.objectReferenceValue == null)
{
Expand Down
3 changes: 3 additions & 0 deletions Assets/NaughtyAttributes/Scripts/Test/ExpandableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ namespace NaughtyAttributes.Test
{
public class ExpandableTest : MonoBehaviour
{
// See #294
public int precedingField = 5;

[Expandable]
public ScriptableObject obj0;

Expand Down

0 comments on commit 7cddf69

Please sign in to comment.