summaryrefslogtreecommitdiffstats
path: root/scene/register_scene_types.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-12-19 13:01:35 +0100
committerYuri Sizov <yuris@humnom.net>2023-12-19 13:01:35 +0100
commit02d4579fa209339d801353022cfed55033035eb3 (patch)
tree95daa2fcd71813d17c77a6cf87d35cd04e62207d /scene/register_scene_types.cpp
parent1ecba5d34178f33b3353356cb0567e5b48d5c7de (diff)
parent932174fedfaaab8804d0ea5c522cefe5626a77dc (diff)
downloadredot-engine-02d4579fa209339d801353022cfed55033035eb3.tar.gz
Merge pull request #85000 from bruvzg/ed_ui_direction
[Editor] Add option to override editor UI layout direction.
Diffstat (limited to 'scene/register_scene_types.cpp')
-rw-r--r--scene/register_scene_types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp
index 2e6759063b..baaa78f9f2 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -456,6 +456,10 @@ void register_scene_types() {
AcceptDialog::set_swap_cancel_ok(swap_cancel_ok);
#endif
+ int root_dir = GLOBAL_GET("internationalization/rendering/root_node_layout_direction");
+ Control::set_root_layout_direction(root_dir);
+ Window::set_root_layout_direction(root_dir);
+
/* REGISTER ANIMATION */
GDREGISTER_CLASS(Tween);
GDREGISTER_ABSTRACT_CLASS(Tweener);