From 1d0d2a76a44017e2c8b560a5feea0c12683e8f1e Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Mon, 17 Mar 2008 12:18:01 -0300 Subject: [PATCH] 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. Author: Ton Roosendaal SVN revision: 14134 Date: 2008-03-16 08:09:34 -0300 (Sun, 16 Mar 2008) --- source/blender/src/buttons_editing.c | 3 +++ source/blender/src/interface_panel.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c index 65813c3..26374bf 100644 --- a/source/blender/src/buttons_editing.c +++ b/source/blender/src/buttons_editing.c @@ -5385,6 +5385,9 @@ static void editing_panel_mesh_texface(void) uiDefBut(block, BUT, B_COPY_TF_UV, "Copy UV+tex", 721,7,85,28, 0, 0, 0, 0, 0, "Copy UV information and textures from active face to selected faces"); uiDefBut(block, BUT, B_COPY_TF_COL, "Copy VertCol", 809,7,103,28, 0, 0, 0, 0, 0, "Copy vertex colors from active face to selected faces"); } + else + uiDefBut(block,LABEL,B_NOP, "(No Active Face)", 10,200,150,19,0,0,0,0,0,""); + } void do_uvcalculationbuts(unsigned short event) diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c index 1805168..37f8220 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; -- 2.11.4.GIT