-
Notifications
You must be signed in to change notification settings - Fork 328
FIX: Fixed pasting bindings into empty Input Action asset (case ISXB-1180) - take #2 #2049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: Fixed pasting bindings into empty Input Action asset (case ISXB-1180) - take #2 #2049
Conversation
…case ISXB-1180) - take #2 FIX: Fixed pasting bindings into empty Input Action asset (case ISXB-1180) Ensure PasteBlocks() deals with invalid selection - when copied type is binding we need to have a valid Action selected to paste into.
|
The error is gone but I'm still allowed to paste it and it pastes it into the void 19.11.2024.-.Unity.25.mp4 |
Yea, there's a few places where stuff like that happens - I'm not sure yet where the context menu gets updated (it shouldn't be on the menu really when there's no valid target). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating status
I've discussed this with Rita after having identified a few more inconsistencies with the context menu. Now I better understand where this menu gets updated I will now make a pass through the code and make the context menu behaviour more consistent. |
…window (Action Maps and Action views) (case ISXB-1180) (case ISXB-1182) o Ensure Paste option is only present in context menu when appropriate. o Fix menu separator presence (or absense). o Action Maps view: can Paste ActionMap or Action (if a map is present). o Actions view: can paste Actions or Bindings depending on selected item context.
|
@Pauliusd01 I've reworked a lot of the context menu and Copy/Paste behaviour so it's more consistent. Would really appreciate you testing it out. Branch: isxb-1180/fix-paste-bindings-from-clipboard-2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, checked cutting/copying bindings, actions and maps into various situations (empty list, invalid list, clicking outside of selection, etc)
I did find a bug with composite bindings being able to be pasted into non composite actions and then once pasted they disappear but that is also in stable and unrelated to this PR.
Thanks Paulius, appreciate the time and effort. I'm not surprised there's a few more niggles to shake out in there (I didn't pay much attention to the composite stuff) - it feels more solid to me now with these changes and I've been able to close out a couple more bugs with the fixes. |
Description
Null Reference Exceptions errors could be logged to the console window when pasting items into the Input Actions Editor window.
FIX: Fixed pasting bindings into empty Input Action asset (case ISXB-1180)
FIX: Fixed pasting newly created Action Map when copied from from Project Settings to new Input Action Asset (case ISXB-1182)
Several issues were addressed:
o Ensure Paste option is only present in context menu when appropriate.
o Fix menu separator presence (or absense).
o Action Maps view: can Paste ActionMap or Action (if a map is present).
o Actions view: can paste Actions or Bindings depending on selected item context.
Testing status & QA
Local testing / automated tests.
Overall Product Risks
Relatively small - only affects the context menu in the Input Actions Editor window.
Complexity: 0
Halo Effect: 0
Comments to reviewers
None in particular - I tried lots of copy / paste with various selections & no selection made, including after deleting an item previously selected.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.After merge: