summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-14 00:27:34 +0100
committerGitHub <noreply@github.com>2021-03-14 00:27:34 +0100
commit1066dbceccd8c7e338cf9792286f3acb3e8643ce (patch)
treee4f71ea75bae95536a8cd8ee78dd8834d57b8b66 /modules
parentf381ea8bb690ffc1630dcf5585138c4f292a3bf9 (diff)
parent094981b2773040c30728fefba575cdfcc48b8be2 (diff)
Merge pull request #46968 from sboronczyk/fix-editor-plugin-mono
Fix create c# script from editor after partial class type is necessary
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/csharp_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 4fca80fca0..610cecae7c 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -328,7 +328,7 @@ Ref<Script> CSharpLanguage::get_template(const String &p_class_name, const Strin
String script_template = "using " BINDINGS_NAMESPACE ";\n"
"using System;\n"
"\n"
- "public class %CLASS% : %BASE%\n"
+ "public partial class %CLASS% : %BASE%\n"
"{\n"
" // Declare member variables here. Examples:\n"
" // private int a = 2;\n"