-
-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Ignore backfaces during Node3D selection #110185
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
base: master
Are you sure you want to change the base?
Conversation
This should also be implemented for remote selection. |
d388708
to
746aa1d
Compare
✔️ Done. |
746aa1d
to
d43059d
Compare
d43059d
to
4325e1f
Compare
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.
Tested locally on https://github.com/Calinou/godot-reflection, it works as expected. Code looks good to me.
In the example below, the camera is stuck inside geometry.
Before
ignore_backfaces_before.mp4
After
ignore_backfaces_after.mp4
Does it need to be a setting? Why would someone want to turn it off? |
I can't see a reason to turn it off, so I think the setting should be removed too. We can introduce it in a future PR if there's a proven need for it. |
4325e1f
to
93195f5
Compare
I've removed the editor setting and hardcoded our two calls to |
Closes #12550.
Adds an editor setting3D > Ignore Backfaces on Selection
that istrue
by default.Adds an optional parameter and an if statement to TriangleMesh's
intersect_ray
function.