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>2004-08-04 01:42:37 +0400
committerTon Roosendaal <ton@blender.org>2004-08-04 01:42:37 +0400
commit05a87bc925026e7d041e9991ae6e89fb6dfd3574 (patch)
tree2d165096a251d7f46d8c346ffa17a83e39942930
parent248404e7a2ec74678b38f83831786e82bdcc91cc (diff)
do_version for 2.34; sets outline select by default on on older
files. (testers; note that you cannot save 2.34 yet!)
-rw-r--r--source/blender/blenloader/intern/readfile.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 51016cc25ac..0a75ef4ff37 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4235,6 +4235,7 @@ static void do_versions(Main *main)
}
if(main->versionfile <= 233) {
+ bScreen *sc;
Material *ma= main->mat.first;
Object *ob= main->object.first;
@@ -4250,6 +4251,19 @@ static void do_versions(Main *main)
if(ob->ipowin==0) ob->ipowin= ID_OB;
ob= ob->id.next;
}
+
+ for (sc= main->screen.first; sc; sc= sc->id.next) {
+ ScrArea *sa;
+ for (sa= sc->areabase.first; sa; sa= sa->next) {
+ SpaceLink *sl;
+ for (sl= sa->spacedata.first; sl; sl= sl->next) {
+ if(sl->spacetype==SPACE_VIEW3D) {
+ View3D *v3d= (View3D *)sl;
+ v3d->flag |= V3D_SELECT_OUTLINE;
+ }
+ }
+ }
+ }
}
/* don't forget to set version number in blender.c! */