From bbc36dbc67040afda18759d5305b61eeb636f706 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Tue, 7 Jan 2020 21:28:13 +0100 Subject: [PATCH] Don't show conf warning if script is not tool --- scene/main/node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 1e2b7c094ea..350959dcc37 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -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();