Fix Layout menu not working
This commit is contained in:
parent
1c2727332e
commit
e0e55a8358
1 changed files with 2 additions and 2 deletions
|
@ -4446,7 +4446,7 @@ void CanvasItemEditor::_set_anchors_and_offsets_preset(Control::LayoutPreset p_p
|
||||||
case PRESET_CENTER_RIGHT:
|
case PRESET_CENTER_RIGHT:
|
||||||
case PRESET_CENTER_BOTTOM:
|
case PRESET_CENTER_BOTTOM:
|
||||||
case PRESET_CENTER:
|
case PRESET_CENTER:
|
||||||
undo_redo->add_do_method(control, "set_margins_preset", p_preset, Control::PRESET_MODE_KEEP_SIZE);
|
undo_redo->add_do_method(control, "set_offsets_preset", p_preset, Control::PRESET_MODE_KEEP_SIZE);
|
||||||
break;
|
break;
|
||||||
case PRESET_LEFT_WIDE:
|
case PRESET_LEFT_WIDE:
|
||||||
case PRESET_TOP_WIDE:
|
case PRESET_TOP_WIDE:
|
||||||
|
@ -4455,7 +4455,7 @@ void CanvasItemEditor::_set_anchors_and_offsets_preset(Control::LayoutPreset p_p
|
||||||
case PRESET_VCENTER_WIDE:
|
case PRESET_VCENTER_WIDE:
|
||||||
case PRESET_HCENTER_WIDE:
|
case PRESET_HCENTER_WIDE:
|
||||||
case PRESET_WIDE:
|
case PRESET_WIDE:
|
||||||
undo_redo->add_do_method(control, "set_margins_preset", p_preset, Control::PRESET_MODE_MINSIZE);
|
undo_redo->add_do_method(control, "set_offsets_preset", p_preset, Control::PRESET_MODE_MINSIZE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
undo_redo->add_undo_method(control, "_edit_set_state", control->_edit_get_state());
|
undo_redo->add_undo_method(control, "_edit_set_state", control->_edit_get_state());
|
||||||
|
|
Loading…
Reference in a new issue