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
Control::has_point not listed as virtual method #8018
Labels
Comments
I'd like to try this as my first contribution. |
Edit: I should learn to read. duh. |
Fixed by #8023. |
groscalin
pushed a commit
to groscalin/godot
that referenced
this issue
Jul 15, 2017
According to Issue godotengine#8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h. classes.xml was updated to also list this method in Control.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Operating system or device - Godot version:
Godot 2.1/HEAD, but it seems like master is somewhat affected too
Issue description:
While coding some stuff for a (non-FOSS) game, I named one of my methods as
has_point
on aCanvasItem
-inheriting script that was assigned to some controls. I made it toreturn true
, since that was to be overriden by other scripts... And then, suddenly, all the controls with that script started grabbing all clicks 😆I decided to search the docs, since I suspected something like this might have happened, but
Control::has_point
wasn't listed, since it isn't bound at all.Note that the
has_point
implementation onscene/gui/control.cpp:572-588
calls the script method.Steps to reproduce:
Link to minimal example project: Partly in a hurry here, so, maybe later on request.
How to fix:
scene/gui/control.cpp:2516
BIND_VMETHOD
macro, like here:scene/main/node.cpp:2923
Control::has_point(Vector2 point)
The text was updated successfully, but these errors were encountered: