summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-08-15 21:35:06 +0900
committervolzhs <volzhs@gmail.com>2018-08-15 21:35:06 +0900
commit4e9795aa99c851ca90c6992fd7faaebaa4aa5d53 (patch)
tree84911eeb6f93c3537eec5f4d8f3e195f4ec1fb01 /scene
parentda157744cd40c5052bc1ebdc66bed972c0a3e7a6 (diff)
Fix not to show configuration warning on every node has script
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp2
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();