Skip to content

Conversation

jimon
Copy link
Contributor

@jimon jimon commented Mar 4, 2021

Description

When deleting more than one binding, BindingTreeItem.property of existing ones becomes invalid until the tree is recreated. But we made one time copy of them inside InputActionTreeView.DeleteDataOfSelectedItems which leads to copies going stale as soon as first item is deleted. When enough items is deleted in one go, property.GetParentProperty() starts pointing into completely wrong place, which leads to native errors in SerializedProperty code.

Changes made

When deleting, dynamically discover what action the current binding is bound to.

@jimon jimon requested a review from andrew-oc March 4, 2021 11:26
@Rene-Damm
Copy link
Contributor

Nice!

@jimon jimon merged commit 8e207d6 into develop Mar 9, 2021
@jimon jimon deleted the dmytro/fix-1300506 branch March 9, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants