瀏覽代碼

Fix not to show configuration warning on every node has script

volzhs 7 年之前
父節點
當前提交
4e9795aa99
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/main/node.cpp

+ 1 - 1
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();