Skip to content

Conversation

@joshua-davis
Copy link
Contributor

@joshua-davis joshua-davis commented Apr 22, 2021

…n a stack block node is selected. Fixes fogbugz 1320212.

Please read the Contributing guide before making a PR.

Checklist for PR maker

  • Have you added a backport label (if needed)? For example, the need-backport-* label. After you backport the PR, the label changes to backported-*.
  • Have you updated the changelog? Each package has a CHANGELOG.md file.
  • Have you updated or added the documentation for your PR? When you add a new feature, change a property name, or change the behavior of a feature, it's best practice to include related documentation changes in the same PR. If you do add documentation, make sure to add the relevant Graphics Docs team member as a reviewer of the PR. If you are not sure which person to add, see the Docs team contacts sheet.
  • Have you added a graphic test for your PR (if needed)? When you add a new feature, or discover a bug that tests don't cover, please add a graphic test.

Purpose of this PR

Fixing https://fogbugz.unity3d.com/f/cases/1320212/

The root issue was the logic to check for and handle floating block nodes was preventing the right click context menus. To get around this, I fixed block node resetting to only operate on floating blocks (one's whose parent wasn't the context view).


Testing status

  • Select a block node then right-click on the graph in empty space. A context menu appears.
  • Select multiple block nodes then right-click on the graph in empty space. A context menu appears.
  • Select a non block node then right-click on the graph in empty space. A context menu appears.
  • Select a block node and drag it out. While still dragging middle click. The block nodes should go back into the stack. (This is what the code I had to fix was for).
  • Select a block node and drag it out. While still dragging right click. The block nodes should go back into the stack and no right-click menu appears.

Comments to reviewers

Notes for the reviewers you have assigned.

…n a stack block node is selected. Fixes fogbugz 1320212.
@joshua-davis joshua-davis requested review from a team and esmelusina April 23, 2021 16:35
Copy link
Contributor

@jessebarker jessebarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a bit of testing around stack nodes making sure things still work correctly. Looks good!

Copy link
Contributor

@esmelusina esmelusina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@joshua-davis joshua-davis marked this pull request as ready for review April 26, 2021 16:48
@joshua-davis joshua-davis merged commit 55affdf into master Apr 27, 2021
@joshua-davis joshua-davis deleted the sg/block-node-right-click branch April 27, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants