diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-11-17 08:54:07 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-11-17 14:56:45 +0200 |
commit | 932174fedfaaab8804d0ea5c522cefe5626a77dc (patch) | |
tree | bacc202225c8ab930ac746d6db14ebcaef8cf9c5 /scene/register_scene_types.cpp | |
parent | ad72de508363ca8d10c6b148be44a02cdf12be13 (diff) | |
download | redot-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.cpp | 4 |
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); |