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

Cameras: Modified cameras to work under onPointerObservable #13293

Merged
merged 3 commits into from
Nov 28, 2022
Merged

Cameras: Modified cameras to work under onPointerObservable #13293

merged 3 commits into from
Nov 28, 2022

Conversation

PolygonalSun
Copy link
Contributor

A user on the forums recently found an issue related to onPointerObservable where skipNextObservers weren't working as they used to. This issue was a side effect of an optimization make in support of Lazy Picking. This optimization would take all internal camera inputs and remove them from the user-facing onPointerObservable. This would cause the camera input observers to be inaccessible in the same way. This PR will add them back to onPointerObservable but keep track of how many camera input observers have been added and require either user-defined observer as part of the criteria for picking.

Forum Post: https://forum.babylonjs.com/t/no-longer-able-to-cancel-camera-inputs-with-new-oncamerainputobservable/35793

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@azure-pipelines
Copy link

Visualization tests for webgl1 have failed. If some tests failed because the snapshots do not match, the report can be found at

https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13293/merge/testResults/webgl1/index.html

If tests were successful afterwards, this report might not be available anymore.

@PolygonalSun PolygonalSun enabled auto-merge (squash) November 28, 2022 20:59
@PolygonalSun PolygonalSun merged commit ca58e21 into BabylonJS:master Nov 28, 2022
@PolygonalSun PolygonalSun deleted the on-pointer-single branch November 28, 2022 22:38
RaananW pushed a commit that referenced this pull request Dec 9, 2022
* Modified inputs to use onPointerObservable

* Formatting

* factored out picking check

Former-commit-id: a2e085cc1a1ea08eb2395f1fbb52c436359baf86
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.

2 participants