diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-08-15 15:12:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 15:12:56 +0200 |
commit | 140b6db219c8b123ad3d5727df7f781f035fb399 (patch) | |
tree | bee38bc9d42dec7a93cd09327122884e9b17aa83 | |
parent | 2f20836e522e1e86e6afe966c074a9d2bfa7ea14 (diff) | |
parent | 4e9795aa99c851ca90c6992fd7faaebaa4aa5d53 (diff) |
Merge pull request #21040 from volzhs/fix-configure-warning
Fix not to show configuration warning on every node has script
-rw-r--r-- | scene/main/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 372ad7367e..d6a80bfb1a 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -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(); |