Skip to content

Fixed a bug with CollectionEditor #73

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

jeffcampbellmakesgames
Copy link
Contributor

Summary

This PR fixes a bug with the collection editor where the implementation for the onRemoveCallback of the ReorderableList being used would result in an exception every time a user tried to remove an item. The fix actually removes both the implementation and use of the callback as the default implementation internal to ReorderableList will have the same net result as the implementation was trying to do.

image

Testing

Attempt to add and remove entries from any Collection asset. Prior to this fix you would see the exception thrown above and the item would not be shown as removed in the inspector. With this fix you should see the item removed in the inspector without any error.

Changes

Fixed a bug with CollectionEditor

  • Removed the implementation for the onRemoveCallback used by the ReorderableList in the CollectionEditor; this keeps the intended behavior (as default) for removing the item, but prevents an exception that a user would experience by removing an item this way.
  • Missing meta file

* Removed the implementation for the onRemoveCallback used by the ReorderableList in the CollectionEditor; this keeps the intended behavior (as default) for removing the item, but prevents an exception that a user would experience by removing an item this way.
@jeffcampbellmakesgames jeffcampbellmakesgames force-pushed the fix/collection_editor_list_exception branch from c0c7295 to 83893d3 Compare May 2, 2019 05:45
@DanielEverland DanielEverland added the bug Something isn't working label May 2, 2019
@DanielEverland DanielEverland added this to the Release 1.6.1 milestone May 2, 2019
@DanielEverland DanielEverland merged commit 0dadf9a into DanielEverland:master May 2, 2019
PauloHMattos pushed a commit to PauloHMattos/ScriptableObject-Architecture that referenced this pull request Aug 3, 2019
…collection_editor_list_exception

Fixed a bug with CollectionEditor
@jeffcampbellmakesgames jeffcampbellmakesgames deleted the fix/collection_editor_list_exception branch October 29, 2019 07:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants