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:
authorDiego Borghetti <bdiego@gmail.com>2010-05-12 22:51:36 +0400
committerDiego Borghetti <bdiego@gmail.com>2010-05-12 22:51:36 +0400
commit98e0b07b51d8f6a4e04eae78ae311b67d82ceadf (patch)
treea63309a6b6ac22b686d7288a3a0a349b7f1ba59b /source/blender/blenloader
parent5f6c7ad23da6d4096cfaf24ff1de527fc1f1b5b5 (diff)
Node Space: tweak the zoom in/out value.
Venomgfx request to allow more zoom in/out value. Also put the code to path old files, so in the next subversion bump we need move the code.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 90503a83698..361066cc878 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -10850,6 +10850,26 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
/* put 2.50 compatibility code here until next subversion bump */
{
+ bScreen *sc;
+
+ 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_NODE) {
+ SpaceNode *snode;
+
+ snode= (SpaceNode *)sl;
+ if (snode->v2d.minzoom > 0.09f)
+ snode->v2d.minzoom= 0.09f;
+ if (snode->v2d.maxzoom < 2.31f)
+ snode->v2d.maxzoom= 2.31f;
+ }
+ }
+ }
+ }
+
do_version_mdef_250(fd, lib, main);
}