[Bf-blender-cvs] [dcf70dc1819] blender2.8: Fix 3D view header panning not working with region overlap.
Brecht Van Lommel
noreply at git.blender.org
Wed Jun 13 11:43:58 CEST 2018
Commit: dcf70dc1819caf08d2cedfadd568364cdf556eb8
Author: Brecht Van Lommel
Date: Wed Jun 13 11:32:46 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBdcf70dc1819caf08d2cedfadd568364cdf556eb8
Fix 3D view header panning not working with region overlap.
===================================================================
M source/blender/editors/screen/area.c
===================================================================
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 6320ebb0253..dafd8990a6e 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -2252,11 +2252,11 @@ void ED_region_header_layout(const bContext *C, ARegion *ar)
void ED_region_header_draw(const bContext *C, ARegion *ar)
{
- UI_view2d_view_ortho(&ar->v2d);
-
/* clear */
region_clear_color(C, ar, region_background_color_id(C, ar));
+ UI_view2d_view_ortho(&ar->v2d);
+
/* View2D matrix might have changed due to dynamic sized regions. */
UI_blocklist_update_window_matrix(C, &ar->uiblocks);
More information about the Bf-blender-cvs
mailing list