Skip to content

Commit

Permalink
Merge pull request #6 from Sanavesa/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Dec 11, 2023
2 parents cd01190 + e81f222 commit d575a73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.0.2] - 2023-12-10

### Fixed
- Fixed ReadOnlyWhenFound

### Updated
- Package Display Name

## [1.0.1] - 2020-10-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion Editor/AutoHookPropertyDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
}
}

EditorGUI.BeginDisabledGroup(autoHookAttribute.ReadOnlyWhenFound);
EditorGUI.BeginDisabledGroup(autoHookAttribute.ReadOnlyWhenFound && property.objectReferenceValue != null);
EditorGUI.PropertyField(position, property, label);
EditorGUI.EndDisabledGroup();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "net.tnrd.autohook",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Auto Hook",
"description": "A property drawer that auto assigns a reference",
"unity": "2019.1",
Expand Down

0 comments on commit d575a73

Please sign in to comment.