From 4e9795aa99c851ca90c6992fd7faaebaa4aa5d53 Mon Sep 17 00:00:00 2001 From: volzhs Date: Wed, 15 Aug 2018 21:35:06 +0900 Subject: Fix not to show configuration warning on every node has script --- scene/main/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/main') 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(); -- cgit v1.2.3