Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-08-16 17:01:40 +0400
committerTon Roosendaal <ton@blender.org>2009-08-16 17:01:40 +0400
commitd823172d6d7121ceac9fd34d7f4a974675253706 (patch)
tree71c33f5fe1ab1d42def3eae0fc61a2710794a09c /source/blender/editors/space_view3d/view3d_header.c
parente3b2cdc8eab9f6077c2b32b5798a1c6810f8a030 (diff)
2.5
Flaw in python UI for headers: code missing to correctly set the total width of header, plus obsolete call in view3d header template to set width. Now MMB scroll of view3d header works again.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_header.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_header.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_header.c b/source/blender/editors/space_view3d/view3d_header.c
index e8a6f1b36ae..4768b66bc2a 100644
--- a/source/blender/editors/space_view3d/view3d_header.c
+++ b/source/blender/editors/space_view3d/view3d_header.c
@@ -3809,9 +3809,8 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
}
}
-
- /* always as last */
- UI_view2d_totRect_set(&ar->v2d, maxco+XIC+80, ar->v2d.tot.ymax-ar->v2d.tot.ymin);
+
+ /* do not do view2d totrect set here, it's now a template */
uiEndBlock(C, block);
uiDrawBlock(C, block);