瀏覽代碼

Merge pull request #4698 from volzhs/compile-no-tools

fix compile failure when tools=no
Rémi Verschelde 9 年之前
父節點
當前提交
926495d8eb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scene/2d/visibility_notifier_2d.cpp

+ 2 - 2
scene/2d/visibility_notifier_2d.cpp

@@ -347,11 +347,11 @@ void VisibilityEnabler2D::_node_removed(Node* p_node) {
 }
 
 String VisibilityEnabler2D::get_configuration_warning() const {
-
+#ifdef TOOLS_ENABLED
 	if (is_inside_tree() && get_parent() && (get_parent()->get_filename()==String() && get_parent()!=get_tree()->get_edited_scene_root())) {
 		return TTR("VisibilityEnable2D works best when used with the edited scene root directly as parent.");
 	}
-
+#endif
 	return String();
 }