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

DragPoints: fix parameters #7408

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pjonsson
Copy link
Contributor

What this PR does

Passes the right number of parameters to the ScreenSpaceEventHandler constructor, and checks the length of entities.values (which is filtered a few lines later) rather than just entities.

Test me

Not sure how to test this.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

The ScreenSpaceEventHandler constructor
only takes a single argument, so remove
the boolean.
The entities property does not
have a length itself, but the values
property of the entities has
a length.

This also makes sense because
the filter a few lines below
the check is done over
entities.values.
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.

1 participant