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-03-16 14:09:34 +0300
committerTon Roosendaal <ton@blender.org>2008-03-16 14:09:34 +0300
commit92464ed68013d6915da7e1adb677f3b8554d9079 (patch)
treea68c4bfd5125efd5ae4369ec9f83ff178242dd60 /source/blender/src/interface_panel.c
parent87c54fb78428c8b629dab1ff8013db67ee61c8c6 (diff)
Bugfix #8526
Sometimes a panel could not be moved, this caused by fact that its parent was sometimes not visible. Old bug actually. :) There's a lot of editbutton panels btw... so there it happened.
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r--source/blender/src/interface_panel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c
index 0752a5dd198..de1e70caeec 100644
--- a/source/blender/src/interface_panel.c
+++ b/source/blender/src/interface_panel.c
@@ -606,7 +606,9 @@ static int panel_has_tabs(Panel *panel)
if(panel==NULL) return 0;
while(pa) {
- if(pa->paneltab==panel) return 1;
+ if(pa->active && pa->paneltab==panel) {
+ return 1;
+ }
pa= pa->next;
}
return 0;