From 10119f7b0411a78eb42b77d13cd0ddeeb4af593b Mon Sep 17 00:00:00 2001 From: CrazyGuy108 Date: Mon, 13 Mar 2017 16:30:40 -0700 Subject: [PATCH] List Control::has_point as a virtual method According to Issue #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. (cherry picked from commit 9589936d6e59fe370297867548f65cb356172120) --- doc/base/classes.xml | 8 ++++++++ scene/gui/control.cpp | 2 ++ 2 files changed, 10 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index c5d0889cc04..b2724811a27 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -9852,6 +9852,14 @@ + + + + + + + + diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 0c85cc1db9e..7c9778db735 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2392,6 +2392,8 @@ void Control::_bind_methods() { ADD_SIGNAL(MethodInfo("size_flags_changed")); ADD_SIGNAL(MethodInfo("minimum_size_changed")); ADD_SIGNAL(MethodInfo("modal_close")); + + BIND_VMETHOD(MethodInfo("has_point", PropertyInfo(Variant::VECTOR2, "point"))); } Control::Control() {