diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-05-18 07:34:24 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-05-18 07:34:24 +0200 |
commit | 926495d8eb11de2878319ba54f30812fa1637d72 (patch) | |
tree | 45512b79f16f1e2c32df785e3759a19fcc180412 /scene | |
parent | 3e61927790ca64ee01a929b8cefa87bb052762c2 (diff) | |
parent | ebcf04ff1fa37531f82b0c8d2a9f2df221d08198 (diff) |
Merge pull request #4698 from volzhs/compile-no-tools
fix compile failure when tools=no
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/visibility_notifier_2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/visibility_notifier_2d.cpp b/scene/2d/visibility_notifier_2d.cpp index 2a5108c627..12524a2192 100644 --- a/scene/2d/visibility_notifier_2d.cpp +++ b/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(); } |