From 585ad5c8eabb74449b8e1215b2ac921a3e44ca1d Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 14 Sep 2018 16:35:52 -0300 Subject: Expose "get_modal_stack_top()" to GDScript --- scene/main/viewport.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/main/viewport.cpp') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index dfd9dfa52e..487ca2b009 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2789,6 +2789,8 @@ void Viewport::_bind_methods() { ClassDB::bind_method(D_METHOD("gui_get_drag_data"), &Viewport::gui_get_drag_data); ClassDB::bind_method(D_METHOD("gui_is_dragging"), &Viewport::gui_is_dragging); + ClassDB::bind_method(D_METHOD("get_modal_stack_top"), &Viewport::get_modal_stack_top); + ClassDB::bind_method(D_METHOD("set_disable_input", "disable"), &Viewport::set_disable_input); ClassDB::bind_method(D_METHOD("is_input_disabled"), &Viewport::is_input_disabled); -- cgit v1.2.3