summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-12 16:18:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-12 16:19:12 -0300
commit42b2d52c8857fdca52029b66a73be0aa951aafe9 (patch)
treef8dc71c9ca3361a8f45d19bbfebb33895f03a5c8 /editor
parent5f1603ca456dbf7521613a67798153c787149bfe (diff)
Properly adjust the visible editor rect and make limits respected, closes #8328
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 8fa9cbdc1c..6587e4fe09 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -272,6 +272,8 @@ void EditorNode::_notification(int p_what) {
}
editor_selection->update();
+ scene_root->set_size_override(true, Size2(GlobalConfig::get_singleton()->get("display/window/width"), GlobalConfig::get_singleton()->get("display/window/height")));
+
ResourceImporterTexture::get_singleton()->update_imports();
}
if (p_what == NOTIFICATION_ENTER_TREE) {