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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-04 15:06:00 +0400
committerTon Roosendaal <ton@blender.org>2006-07-04 15:06:00 +0400
commitb6984214f06d7e2ec52595d9114ce2697cc71e62 (patch)
treebd497d5cb5754ec6dcb3b30a3f59f645fd9cb968 /source
parent0458c50f63da046d03819450f82048b3ad586e6c (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c3
1 files changed, 2 insertions, 1 deletions
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;