Skip to content

Commit 10a941c

Browse files
committed
Update to check for composite and partofcomposite
1 parent 2bbe63b commit 10a941c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/AssetEditor/InputActionTreeView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ Type CopyTagToType(string tagName)
796796
if (location.item is ActionTreeItemBase dropTarget)
797797
{
798798
// Specific case - Composite parts cannot be dropped into Bindings
799-
if (location.item is not CompositeBindingTreeItem && tag == k_PartOfCompositeBindingTag)
799+
if (tag == k_PartOfCompositeBindingTag && location.item is not(CompositeBindingTreeItem or PartOfCompositeBindingTreeItem))
800800
return;
801801

802802
if (!dropTarget.GetDropLocation(itemType, location.childIndex, ref array, ref arrayIndex))

0 commit comments

Comments
 (0)