Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ however, it has to be formatted properly to pass verification tests.

- Fixed warnings being generated on Unity 6.4 and 6.5. (ISX-2395).
- Fixed extra empty lines being displayed in the control binding list when mouse buttons are pressed [ISXB-1677](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1677)
- Fixed InputActionReference not being set when attempting to set it on a Prefab or ScriptableObject [ISXB-1787](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1787)

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@
// Only assign the value was actually changed by the user.
if (EditorGUI.EndChangeCheck() && !Equals(candidate, current))
{
var reference = candidate as InputActionReference;
property.objectReferenceValue = reference ?
InputActionReference.Create(reference.action) : null;
property.objectReferenceValue = candidate as InputActionReference; // set to either the reference or null.

Check warning on line 51 in Packages/com.unity.inputsystem/InputSystem/Editor/PropertyDrawers/InputActionReferencePropertyDrawer.cs

View check run for this annotation

Codecov GitHub.com / codecov/patch

Packages/com.unity.inputsystem/InputSystem/Editor/PropertyDrawers/InputActionReferencePropertyDrawer.cs#L51

Added line #L51 was not covered by tests
}

EditorGUI.EndProperty();
Expand Down