You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Changes the keep_margin parameter to true by default, so that people are not suprised that set_anchor changes the margins values
This commit is contained in:
committed by
Gilles Roudiere
parent
05b1843818
commit
b06c6602c8
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user