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>2008-12-15 16:23:55 +0300
committerTon Roosendaal <ton@blender.org>2008-12-15 16:23:55 +0300
commita1e0868018150f89a9b0ca2d92122ef75ec5c119 (patch)
tree64863a3b5546fe858d7a85517dc2c689f4e50b1a /source/blender/editors/space_script
parentd48f4b6012ccfc1a1da6a1a002d7c86cacbd98aa (diff)
2.5
- depricated area "headbutofs" and "headbutlen", which is now fully replaced with view2d handling. - needed to add header default V2D_ALIGN_NO_NEG_Y, V2D_LOCKOFS_Y seems to not do anything atm :) - new: running blender in debug (blender -d) will print the current handler and operator in use (not mousemove)
Diffstat (limited to 'source/blender/editors/space_script')
-rw-r--r--source/blender/editors/space_script/script_header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_script/script_header.c b/source/blender/editors/space_script/script_header.c
index c50fb58697c..8cc3966fdf1 100644
--- a/source/blender/editors/space_script/script_header.c
+++ b/source/blender/editors/space_script/script_header.c
@@ -123,7 +123,7 @@ void script_header_buttons(const bContext *C, ARegion *ar)
uiBlockSetEmboss(block, UI_EMBOSS);
/* always as last */
- sa->headbutlen= xco+XIC+80; // +80 because the last button is not an icon
+ UI_view2d_totRect_set(&ar->v2d, xco+XIC+80, ar->v2d.tot.ymax-ar->v2d.tot.ymin);
uiEndBlock(C, block);
uiDrawBlock(block);