Merge pull request #21040 from volzhs/fix-configure-warning

Fix not to show configuration warning on every node has script
This commit is contained in:
Rémi Verschelde 2018-08-15 15:12:56 +02:00 committed by GitHub
commit 140b6db219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2555,7 +2555,7 @@ void Node::clear_internal_tree_resource_paths() {
String Node::get_configuration_warning() const {
if (get_script_instance()) {
if (get_script_instance() && get_script_instance()->has_method("_get_configuration_warning")) {
return get_script_instance()->call("_get_configuration_warning");
}
return String();