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>2005-07-10 15:00:27 +0400
committerTon Roosendaal <ton@blender.org>2005-07-10 15:00:27 +0400
commit227a67e1057f5a8595e1129422fdacfbe17b48c2 (patch)
tree1857faede6b8f393abb0a778849e95e95e10fcfa /source/blender/src/interface_panel.c
parent65c9ea4588f43b52937f007d88a82a327718e036 (diff)
Bug fix #2774
Using linked library files with relative paths, didn't set the correct relative root... so it only worked with files in the same directory. ALso fixed the button-lock in material buttons, it didn't allow to see which materials were linked to the mesh/object.
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r--source/blender/src/interface_panel.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c
index 56fef64debd..fae2ce91b86 100644
--- a/source/blender/src/interface_panel.c
+++ b/source/blender/src/interface_panel.c
@@ -486,7 +486,14 @@ int uiNewPanel(ScrArea *sa, uiBlock *block, char *panelname, char *tabname, int
pa= pa->next;
}
- if(pa==NULL) {
+ if(pa) {
+ if(pa->sizex != sizex) {
+ pa->sizex= sizex;
+ pa->ofsy+= (pa->sizey - sizey); // check uiNewPanelHeight()
+ pa->sizey= sizey;
+ }
+ }
+ else {
/* new panel */
pa= MEM_callocN(sizeof(Panel), "new panel");