From 7034d480327609e104662b3f7588d79f96c3795d Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sun, 29 Apr 2018 19:49:26 +0200 Subject: Fix binding some core API methods only in tools builds --- modules/visual_script/register_types.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/visual_script') diff --git a/modules/visual_script/register_types.cpp b/modules/visual_script/register_types.cpp index 2809cff362..11401c0460 100644 --- a/modules/visual_script/register_types.cpp +++ b/modules/visual_script/register_types.cpp @@ -112,7 +112,9 @@ void register_visual_script_types() { register_visual_script_expression_node(); #ifdef TOOLS_ENABLED + ClassDB::set_current_api(ClassDB::API_EDITOR); ClassDB::register_class<_VisualScriptEditor>(); + ClassDB::set_current_api(ClassDB::API_CORE); vs_editor_singleton = memnew(_VisualScriptEditor); Engine::get_singleton()->add_singleton(Engine::Singleton("VisualScriptEditor", _VisualScriptEditor::get_singleton())); -- cgit v1.2.3