aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorAndreas Haas2017-12-02 17:01:05 +0000
committerGitHub2017-12-02 17:01:05 +0000
commit4170e8f3dfefb46fb2309460a8b4a6540b627d2e (patch)
tree80e8956ce5cfc8da6219cd157bda98c0b2db7956 /editor/plugins/spatial_editor_plugin.cpp
parent5ddf288c790b4dc6b6461ed25687e835469481c6 (diff)
parent893a71b7ddadfc07711ae882123e7df691bce4e2 (diff)
downloadgodot-4170e8f3dfefb46fb2309460a8b4a6540b627d2e.tar.gz
godot-4170e8f3dfefb46fb2309460a8b4a6540b627d2e.tar.zst
godot-4170e8f3dfefb46fb2309460a8b4a6540b627d2e.zip
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index 9fd41c106..390cbf727 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -3389,6 +3389,8 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed
preview_camera->set_toggle_mode(true);
preview_camera->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_END, -90 * EDSCALE);
preview_camera->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 10 * EDSCALE);
+ preview_camera->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, -10 * EDSCALE);
+ preview_camera->set_h_grow_direction(GROW_DIRECTION_BEGIN);
preview_camera->set_text(TTR("preview"));
surface->add_child(preview_camera);
preview_camera->hide();