summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-27 19:55:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-27 19:55:37 -0300
commit3a93499f899c68db38b68239f227e381e5ded20e (patch)
tree609de32458bc898c34c08f5996862bbac49ca903 /modules/mono
parent616b91b498b332c5cace5ed8324eb818d7eb68d2 (diff)
Allow signal connecting even if script is invalid (only when compiled with tools), fixes #17070
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/csharp_script.cpp4
-rw-r--r--modules/mono/csharp_script.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 700e518cfc..0a54ed5fbd 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -2571,6 +2571,10 @@ void CSharpScript::update_exports() {
#endif
}
+bool CSharpScript::is_valid() const {
+ return true; //TODO return false if invalid
+}
+
bool CSharpScript::has_script_signal(const StringName &p_signal) const {
if (_signals.has(p_signal))
return true;
diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h
index fc604df2a0..871d4d7e4c 100644
--- a/modules/mono/csharp_script.h
+++ b/modules/mono/csharp_script.h
@@ -158,6 +158,8 @@ public:
virtual void update_exports();
virtual bool is_tool() const { return tool; }
+ virtual bool is_valid() const;
+
virtual Ref<Script> get_base_script() const;
virtual ScriptLanguage *get_language() const;