diff options
author | Severin <eiseljulian@gmail.com> | 2018-06-30 16:36:00 +0300 |
---|---|---|
committer | Severin <eiseljulian@gmail.com> | 2018-06-30 16:41:04 +0300 |
commit | 7f4ce6c62b76018c861e85f0868910eceadf7c00 (patch) | |
tree | 69cee4b5e090930ffcce7c49e105736eebb1da1b /source/blender/editors | |
parent | b35aa659d14fb1d5036c97d961358be453d2626b (diff) |
Fix corrupt screen when splitting areas after collapsing top-bar
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 90d33fbde03..0c124f6c9a4 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1753,6 +1753,7 @@ static ScrEdge *area_findsharededge(bScreen *screen, ScrArea *sa, ScrArea *sb) /* do the split, return success */ static int area_split_apply(bContext *C, wmOperator *op) { + const wmWindow *win = CTX_wm_window(C); bScreen *sc = CTX_wm_screen(C); sAreaSplitData *sd = (sAreaSplitData *)op->customdata; float fac; @@ -1761,16 +1762,15 @@ static int area_split_apply(bContext *C, wmOperator *op) fac = RNA_float_get(op->ptr, "factor"); dir = RNA_enum_get(op->ptr, "direction"); - sd->narea = area_split(CTX_wm_window(C), sc, sd->sarea, dir, fac, 0); /* 0 = no merge */ + sd->narea = area_split(win, sc, sd->sarea, dir, fac, 0); /* 0 = no merge */ if (sd->narea) { - ScrVert *sv; - sd->nedge = area_findsharededge(sc, sd->sarea, sd->narea); /* select newly created edge, prepare for moving edge */ - for (sv = sc->vertbase.first; sv; sv = sv->next) + ED_screen_verts_iter(win, sc, sv) { sv->editflag = 0; + } sd->nedge->v1->editflag = 1; sd->nedge->v2->editflag = 1; |