Skip to content

Commit

Permalink
Merge pull request #145 from simonbucher/PR-Fix-readonly-property
Browse files Browse the repository at this point in the history
Fix readonly property doesn't appear in inspector
  • Loading branch information
DanielEverland authored Apr 10, 2021
2 parents 6fcc668 + 50ab220 commit 3e4230d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected void DrawClampedFields()
}
protected void DrawReadonlyField()
{
if (IsClampable)
if (_isClamped.boolValue)
return;

EditorGUILayout.PropertyField(_readOnly, new GUIContent("Read Only", READONLY_TOOLTIP));
Expand Down

0 comments on commit 3e4230d

Please sign in to comment.