forked from bartvdbraak/blender
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.
This commit is contained in:
parent
5f6c7ad23d
commit
98e0b07b51
@ -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);
|
||||
}
|
||||
|
||||
|
@ -136,8 +136,8 @@ static SpaceLink *node_new(const bContext *C)
|
||||
ar->v2d.max[0]= 32000.0f;
|
||||
ar->v2d.max[1]= 32000.0f;
|
||||
|
||||
ar->v2d.minzoom= 0.2f;
|
||||
ar->v2d.maxzoom= 1.21f;
|
||||
ar->v2d.minzoom= 0.09f;
|
||||
ar->v2d.maxzoom= 2.31f;
|
||||
|
||||
ar->v2d.scroll= (V2D_SCROLL_RIGHT|V2D_SCROLL_BOTTOM);
|
||||
ar->v2d.keepzoom= V2D_LIMITZOOM|V2D_KEEPASPECT;
|
||||
|
Loading…
Reference in New Issue
Block a user