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

spatial index queries return Nodes outside view's rendering area #128

Open
PawelRoman opened this issue Aug 22, 2021 · 0 comments
Open

spatial index queries return Nodes outside view's rendering area #128

PawelRoman opened this issue Aug 22, 2021 · 0 comments

Comments

@PawelRoman
Copy link
Contributor

PawelRoman commented Aug 22, 2021

Steps to replicate:

  1. Have a view that renders stuff only in specific area e.g. 100x100 box in the middle of the screen
  2. Add some nodes to that view in such position that those nodes are outside the view's render area ie. do not appear on the screen
  3. Run scene.spatial_index.query_point on a point OUTSIDE view's render arena, but where the node is.

Expected: node is not get returned (as it is outside view's render area)
Actual: node is returned

Suggestion: add a flag to all spatial query methods to allow to explicitly query for nodes outside of the view's render area. But by default that flag should be disabled - queries should return only the nodes in the render area of the view.

@PawelRoman PawelRoman changed the title spatial index queries return Nodes outside view area spatial index queries return Nodes outside view's rendering area Aug 22, 2021
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

No branches or pull requests

1 participant