summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2018-11-30 22:09:23 +0100
committerGitHub <noreply@github.com>2018-11-30 22:09:23 +0100
commitb613c29053ef30a6be184aed6b9be5df46443db6 (patch)
tree96c5a0b413edb8ff8586331c7ef4b0526a32cc89 /modules/mono
parent989b93d6a406d439367bf34fb39b422c0f639f17 (diff)
parent5fd3ef4e787c636aafc7cb71d25fd8d9eda336b0 (diff)
Merge pull request #24092 from neikeq/jj
Implement CSharpScript::is_valid()
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/csharp_script.cpp4
-rw-r--r--modules/mono/csharp_script.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 8bc459c4fd..e3df0246ab 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -2594,10 +2594,6 @@ 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 c9143587fd..269d7ebe42 100644
--- a/modules/mono/csharp_script.h
+++ b/modules/mono/csharp_script.h
@@ -169,7 +169,7 @@ public:
virtual void update_exports();
virtual bool is_tool() const { return tool; }
- virtual bool is_valid() const;
+ virtual bool is_valid() const { return valid; }
virtual Ref<Script> get_base_script() const;
virtual ScriptLanguage *get_language() const;