diff options
author | Ton Roosendaal <ton@blender.org> | 2007-03-27 13:13:18 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-03-27 13:13:18 +0400 |
commit | 12c8ce44ca00bd99d52ee1ee30c179cc688190f9 (patch) | |
tree | 777323d02637a78d89844ead1970d8b45925d684 /source/blender/src/interface_panel.c | |
parent | 7be47ac0cd84557d8df9fc65acb7130a8e35c893 (diff) |
Bugfix #6453
Panel name of "transform properties" can change based on mode. This was
not drawn correct when panel minimized.
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r-- | source/blender/src/interface_panel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c index 1acdc470919..ccca7a76066 100644 --- a/source/blender/src/interface_panel.c +++ b/source/blender/src/interface_panel.c @@ -525,7 +525,6 @@ int uiNewPanel(ScrArea *sa, uiBlock *block, char *panelname, char *tabname, int block->handler= pnl_handler; pa->active= 1; pa->control= pnl_control; - pa->drawname[0]= 0; /* global control over this feature; UI_PNL_TO_MOUSE only called for hotkey panels */ if(U.uiflag & USER_PANELPINNED); @@ -554,6 +553,9 @@ int uiNewPanel(ScrArea *sa, uiBlock *block, char *panelname, char *tabname, int if(block->panel->paneltab) return 0; if(block->panel->flag & PNL_CLOSED) return 0; + /* the 'return 0' above makes this to be in end. otherwise closes panels show wrong title */ + pa->drawname[0]= 0; + return 1; } |