diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-05 01:25:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-05 01:25:38 +0300 |
commit | 4572428e863da35767cf45e99925c8b0c2514f91 (patch) | |
tree | 2cd549ac836194e1252c48dfb18bf6566fa217cb /source/blender/editors/interface/interface_panel.c | |
parent | bf36080501b1381fa28fec51114904ce5a56cdf3 (diff) |
Cleanup: Remove unused Panel.snap from DNA and handler code
This was a remnant of floating panels from the horizontal layout in
pre 2.5 horizontal panels.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index e5628ff952e..d69e1e748d9 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1942,9 +1942,6 @@ static void ui_do_drag(const bContext *C, const wmEvent *event, Panel *panel) dx *= BLI_rctf_size_x(®ion->v2d.cur) / (float)BLI_rcti_size_x(®ion->winrct); dy *= BLI_rctf_size_y(®ion->v2d.cur) / (float)BLI_rcti_size_y(®ion->winrct); - /* Reset the panel snapping, to allow dragging away from snapped edges. */ - panel->snap = PNL_SNAP_NONE; - /* Add the movement of the view due to edge scrolling while dragging. */ dx += ((float)region->v2d.cur.xmin - data->start_cur_xmin); dy += ((float)region->v2d.cur.ymin - data->start_cur_ymin); @@ -2154,21 +2151,13 @@ static void ui_handle_panel_header(const bContext *C, if (UI_panel_is_closed(panel)) { panel->flag &= ~PNL_CLOSED; - /* Snap back up so full panel aligns with screen edge. */ - if (panel->snap & PNL_SNAP_BOTTOM) { - panel->ofsy = 0; - } if (event_type == LEFTMOUSE) { ui_panel_drag_collapse_handler_add(C, false); } } else { - /* Snap down to bottom screen edge. */ panel->flag |= PNL_CLOSED; - if (panel->snap & PNL_SNAP_BOTTOM) { - panel->ofsy = -panel->sizey; - } if (event_type == LEFTMOUSE) { ui_panel_drag_collapse_handler_add(C, true); |