From 9589936d6e59fe370297867548f65cb356172120 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. --- 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 71594887fcc..0b6e2d99ea0 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -9810,6 +9810,14 @@ + + + + + + + + diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 7779391baee..af4b8965c31 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2514,6 +2514,8 @@ void Control::_bind_methods() { ADD_SIGNAL(MethodInfo("size_flags_changed")); ADD_SIGNAL(MethodInfo("minimum_size_changed")); ADD_SIGNAL(MethodInfo("modal_closed")); + + BIND_VMETHOD(MethodInfo("has_point", PropertyInfo(Variant::VECTOR2, "point"))); } Control::Control() {