diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-11-27 19:55:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-11-27 19:55:37 -0300 |
commit | 3a93499f899c68db38b68239f227e381e5ded20e (patch) | |
tree | 609de32458bc898c34c08f5996862bbac49ca903 /modules/gdscript | |
parent | 616b91b498b332c5cace5ed8324eb818d7eb68d2 (diff) |
Allow signal connecting even if script is invalid (only when compiled with tools), fixes #17070
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 1 | ||||
-rw-r--r-- | modules/gdscript/gdscript.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 1f5f5035f9..538249c8e2 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -867,7 +867,6 @@ bool GDScript::has_script_signal(const StringName &p_signal) const { else if (base_cache.is_valid()) { return base_cache->has_script_signal(p_signal); } - #endif return false; } diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index f344beba9f..752d660ffb 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -141,7 +141,7 @@ protected: static void _bind_methods(); public: - bool is_valid() const { return valid; } + virtual bool is_valid() const { return valid; } const Map<StringName, Ref<GDScript> > &get_subclasses() const { return subclasses; } const Map<StringName, Variant> &get_constants() const { return constants; } |