Don't show conf warning if script is not tool
This commit is contained in:
parent
aaa5ca7be2
commit
bbc36dbc67
1 changed files with 2 additions and 1 deletions
|
@ -2680,7 +2680,8 @@ void Node::clear_internal_tree_resource_paths() {
|
||||||
|
|
||||||
String Node::get_configuration_warning() const {
|
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 get_script_instance()->call("_get_configuration_warning");
|
||||||
}
|
}
|
||||||
return String();
|
return String();
|
||||||
|
|
Loading…
Reference in a new issue