Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 15, 2021

Related issue: Fixed #19784.

Description

Similar to other intersect*() methods, Plane.intersectLine() now uses null instead of undefined to represent "no intersection found".

I've considered to make the same change in Object3D.getObjectByProperty() however this might potentially break a lot of code. I also think it is not that urgent since all getObjectBy*() methods behave consistently (which is not true for the intersection routines).

@mrdoob mrdoob added this to the r127 milestone Mar 15, 2021
@mrdoob mrdoob merged commit a81b902 into mrdoob:dev Mar 15, 2021
@mrdoob
Copy link
Owner

mrdoob commented Mar 15, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up suggestion for methods that optionally return

2 participants