From bfa2d0d0d901c3374d761347b45ba792a23f7fbc Mon Sep 17 00:00:00 2001 From: reduz Date: Sat, 26 Mar 2022 16:48:43 +0100 Subject: [PATCH] Add GDExtension support to Script * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again). --- visual_script.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visual_script.h b/visual_script.h index d4dffdf..d72bdf9 100644 --- a/visual_script.h +++ b/visual_script.h @@ -338,8 +338,8 @@ public: virtual Error reload(bool p_keep_state = false) override; #ifdef TOOLS_ENABLED - virtual const Vector &get_documentation() const override { - static Vector docs; + virtual Vector get_documentation() const override { + Vector docs; return docs; } #endif // TOOLS_ENABLED