From 28561c2e7af963a5b7b5d40f97354ca205292c73 Mon Sep 17 00:00:00 2001 From: Will Nations Date: Tue, 19 Dec 2017 06:55:55 -0600 Subject: [PATCH] Add Script.get_base_script/instance_base_type API --- core/script_language.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/script_language.cpp b/core/script_language.cpp index c1e9d558726..2c32054e77d 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -54,6 +54,8 @@ void Script::_bind_methods() { ClassDB::bind_method(D_METHOD("get_source_code"), &Script::get_source_code); ClassDB::bind_method(D_METHOD("set_source_code", "source"), &Script::set_source_code); ClassDB::bind_method(D_METHOD("reload", "keep_state"), &Script::reload, DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_base_script"), &Script::get_base_script); + ClassDB::bind_method(D_METHOD("get_instance_base_type"), &Script::get_instance_base_type); ClassDB::bind_method(D_METHOD("has_script_signal", "signal_name"), &Script::has_script_signal);