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.
This commit is contained in:
Ton Roosendaal
2008-03-16 11:09:34 +00:00
parent 87c54fb784
commit 92464ed680
2 changed files with 6 additions and 1 deletions

View File

@@ -6195,6 +6195,9 @@ static void editing_panel_mesh_texface(void)
uiDefButC(block, ROW, REDRAWVIEW3D, "Add", 660,80,60,19, &tf->transp, 2.0, (float)TF_ADD, 0, 0, "Render face transparent and add color of face");
uiDefButC(block, ROW, REDRAWVIEW3D, "Alpha", 720,80,60,19, &tf->transp, 2.0, (float)TF_ALPHA,0, 0, "Render polygon transparent, depending on alpha channel of the texture");
}
else
uiDefBut(block,LABEL,B_NOP, "(No Active Face)", 10,200,150,19,0,0,0,0,0,"");
}
void do_uvcalculationbuts(unsigned short event)

View File

@@ -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;