Merge pull request #34896 from KoBeWi/no_tool_no_warn

Don't show conf warning if script is not tool
This commit is contained in:
Rémi Verschelde 2020-01-07 21:44:53 +01:00 committed by GitHub
commit 8287349bd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2680,7 +2680,8 @@ void Node::clear_internal_tree_resource_paths() {
String Node::get_configuration_warning() const {
if (get_script_instance() && get_script_instance()->has_method("_get_configuration_warning")) {
if (get_script_instance() && get_script_instance()->get_script().is_valid() &&
get_script_instance()->get_script()->is_tool() && get_script_instance()->has_method("_get_configuration_warning")) {
return get_script_instance()->call("_get_configuration_warning");
}
return String();