diff --git a/src/editor/property_selector.cpp b/src/editor/property_selector.cpp index 9a0b38e6..daa4e793 100644 --- a/src/editor/property_selector.cpp +++ b/src/editor/property_selector.cpp @@ -214,7 +214,11 @@ OrchestratorPropertySelector::OrchestratorPropertySelector() SceneUtils::add_margin_child(vbox, "Search:", _search_box); _search_options = memnew(Tree); + #if GODOT_VERSION >= 0x040300 _search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); + #else + _search_options->set_auto_translate(false); + #endif _search_options->set_hide_root(true); _search_options->set_hide_folding(true); SceneUtils::add_margin_child(vbox, "Matches:", _search_options, true); diff --git a/src/editor/scene_node_selector.cpp b/src/editor/scene_node_selector.cpp index 4d30903d..e51889d1 100644 --- a/src/editor/scene_node_selector.cpp +++ b/src/editor/scene_node_selector.cpp @@ -18,6 +18,7 @@ #include "common/macros.h" #include "common/scene_utils.h" +#include "common/version.h" #include #include @@ -227,7 +228,11 @@ OrchestratorSceneNodeSelector::OrchestratorSceneNodeSelector() _tree = memnew(Tree); _tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); + #if GODOT_VERSION >= 0x040300 _tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); + #else + _tree->set_auto_translate(false); + #endif _tree->set_anchor(SIDE_RIGHT, Control::ANCHOR_END); _tree->set_anchor(SIDE_BOTTOM, Control::ANCHOR_END); _tree->set_begin(Point2(0, 0));