From b6984214f06d7e2ec52595d9114ce2697cc71e62 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 4 Jul 2006 11:06:00 +0000 Subject: Fix #4601 Buttons window "align" is being set to default on files read older than 2.30. This is giving very bad panel layouts now. --- source/blender/blenloader/intern/readfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 847e853a96d..6f154ce587f 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4709,7 +4709,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main) SpaceButs *sbuts= (SpaceButs *) sl; sbuts->v2d.maxzoom= 1.2f; - + sbuts->align= 1; /* horizontal default */ + if(sbuts->mainb==BUTS_LAMP) { sbuts->mainb= CONTEXT_SHADING; sbuts->tab[CONTEXT_SHADING]= TAB_SHADING_LAMP; -- cgit v1.2.3