summaryrefslogtreecommitdiffstats
path: root/scene/register_scene_types.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-11-17 08:54:07 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-11-17 14:56:45 +0200
commit932174fedfaaab8804d0ea5c522cefe5626a77dc (patch)
treebacc202225c8ab930ac746d6db14ebcaef8cf9c5 /scene/register_scene_types.cpp
parentad72de508363ca8d10c6b148be44a02cdf12be13 (diff)
downloadredot-engine-932174fedfaaab8804d0ea5c522cefe5626a77dc.tar.gz
[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 3727c788fd..e3a4a966de 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -454,6 +454,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);