Skip to content
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

[bugfix] Don't select entity on raycaster click if we used one of the controls #734

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

vincentfretin
Copy link
Contributor

@vincentfretin vincentfretin commented Jul 15, 2024

Don't select entity on raycaster click if we used EditorControls or TransformControls, so actually if we moved the mouse at all.
That's exactly the same condition as in the three.js editor where this works correctly.
https://github.com/mrdoob/three.js/blob/1845f6cd0525b5c73b9da33c40e198c360af29f1/editor/js/Viewport.js#L194

See 3DStreet/3dstreet#645 for more details on the issue.

@vincentfretin vincentfretin marked this pull request as draft July 15, 2024 18:04
@vincentfretin vincentfretin marked this pull request as ready for review July 16, 2024 08:43
@vincentfretin vincentfretin changed the title Don't select entity on raycaster click if we used one of the controls [bugfix] Don't select entity on raycaster click if we used one of the controls Jul 16, 2024
@dmarcos
Copy link
Member

dmarcos commented Jul 22, 2024

Thanks

@dmarcos dmarcos merged commit e742ab6 into aframevr:master Jul 22, 2024
1 check passed
@vincentfretin vincentfretin deleted the fix-drag-select-entity branch July 22, 2024 17:26
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.

2 participants