Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Fixed the deselecting of faces that are behind the face you clicked on #24

Merged
merged 3 commits into from
Jan 22, 2018

Conversation

Henry00IS
Copy link
Collaborator

SurfaceEditor: We now use the first polygon that was hit so we don't accidentally select/deselect polygons behind the one we see. A very annoying bug that was fixed by removing a lot of code that apparently doesn't do anything useful.

Correct me if I am wrong, but I tried everything I could think of and it works perfectly, I have no idea what all that code was doing.

Also to replicate the bug I am talking about, select a face, move your camera so it's covered by another face, try selecting that one, the face behind it will be deselected and the face you clicked stays deselected. An annoying bug because the wrong raycast hits were used instead of the first. I found the solution by looking at how CTRL-click does it on mouse-up where you already fixed this problem the same way. "// User is trying to multiselect, let's not make life difficult for them, by only accepting the nearest polygon".

…accidentally select/deselect polygons behind the one we see. A very annoying bug that was fixed by removing a lot of code that apparently doesn't do anything useful.
@sabresaurus
Copy link
Owner

This was added to support cycle click of faces. When you click on a face, subsequent clicks allow you to cycle through other hits. It's something we do with both the brush selection and the face tool, in addition Unity does it too. I'm not sure removing cycle click support is the correct fix for this

…fier keys does a special action, that's either rotating on CTRL (which is actually behaving like this already) or quick select on SHIFT. Now we got every feature!
@Henry00IS
Copy link
Collaborator Author

Thank you! Now I finally understand! The good news is I found the perfect solution. Clicking without any modifier keys does the cycling and with modifier keys does the special action, that's either rotating on CTRL (which is actually behaving like this already) or quick select on SHIFT. Now we got every feature!

Copy link
Owner

@sabresaurus sabresaurus 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 to me

@sabresaurus sabresaurus merged commit 235e8e5 into sabresaurus:master Jan 22, 2018
@Henry00IS Henry00IS deleted the SelectionBugfix branch January 23, 2018 08:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants