kaa
kaa copied to clipboard
spatial index queries return Nodes outside view's rendering area
Steps to replicate:
- Have a view that renders stuff only in specific area e.g. 100x100 box in the middle of the screen
- 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
- 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.