summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-04-29 19:49:26 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-04-29 19:49:26 +0200
commit7034d480327609e104662b3f7588d79f96c3795d (patch)
tree0e31e07aa9d1f5b0fd5d48a1b17d63d15a318449 /modules
parentd0183effe02edb973e44e5ad8b3608d861f86490 (diff)
Fix binding some core API methods only in tools builds
Diffstat (limited to 'modules')
-rw-r--r--modules/visual_script/register_types.cpp2
1 files changed, 2 insertions, 0 deletions
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()));