diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2018-01-14 14:13:11 +0100 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@laas.fr> | 2018-01-15 10:37:13 +0100 |
commit | b06c6602c8a1a96f72bcbebb2a86176d1e69c79d (patch) | |
tree | 2158235a43a448f461a74372ed96dbaf177abb00 /editor/plugins/tile_set_editor_plugin.cpp | |
parent | 05b1843818fd07f084816ec506ec505e24f8f02c (diff) |
Changes the keep_margin parameter to true by default, so that people are not suprised that set_anchor changes the margins values
Diffstat (limited to 'editor/plugins/tile_set_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index 612bdb1d2a..f47f9e55bb 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -304,8 +304,7 @@ TileSetEditorPlugin::TileSetEditorPlugin(EditorNode *p_node) { tileset_editor = memnew(TileSetEditor(p_node)); add_control_to_container(CONTAINER_CANVAS_EDITOR_MENU, tileset_editor); - tileset_editor->set_anchors_and_margins_preset(Control::PRESET_WIDE); - tileset_editor->set_anchor(MARGIN_BOTTOM, Control::ANCHOR_BEGIN); + tileset_editor->set_anchors_and_margins_preset(Control::PRESET_TOP_WIDE); tileset_editor->set_end(Point2(0, 22)); tileset_editor->hide(); |