summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-05-03 14:36:32 +0200
committerGitHub <noreply@github.com>2018-05-03 14:36:32 +0200
commitb774156729b4b2f8a1fea6faf6e232fe809ea6f6 (patch)
treec6175bb0af57e0da218e58b594d6b27cb3f2b61a /modules
parent12c60eba19fbb6971ea0ffa2cf8312ad42e84d65 (diff)
parent3a86dffc5e6ce180c350ef9a9ddd019b24584d88 (diff)
Merge pull request #18514 from neikeq/api-hash-fixes
API hash fixes
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()));