Merge pull request #4698 from volzhs/compile-no-tools
fix compile failure when tools=no
This commit is contained in:
commit
926495d8eb
1 changed files with 2 additions and 2 deletions
|
@ -347,11 +347,11 @@ void VisibilityEnabler2D::_node_removed(Node* p_node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
String VisibilityEnabler2D::get_configuration_warning() const {
|
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())) {
|
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.");
|
return TTR("VisibilityEnable2D works best when used with the edited scene root directly as parent.");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return String();
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue