1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Allow signal connecting even if script is invalid (only when compiled with tools), fixes #17070

This commit is contained in:
Juan Linietsky
2018-11-27 19:55:37 -03:00
parent 616b91b498
commit 3a93499f89
11 changed files with 33 additions and 4 deletions

View File

@@ -294,6 +294,10 @@ MethodInfo NativeScript::get_method_info(const StringName &p_method) const {
return MethodInfo();
}
bool NativeScript::is_valid() const {
return true;
}
bool NativeScript::is_tool() const {
NativeScriptDesc *script_data = get_script_desc();