Node Editor: Change minimum zoom
Now with Geometry Nodes in Blender, trees can become much bigger than before. This changes the minimum zoom value in the node editor. Differential Revision: https://developer.blender.org/D13254
This commit is contained in:
parent
b2d37c35d0
commit
3f288e9414
|
@ -1 +1 @@
|
|||
Subproject commit 6178bad247c69c9c4e1a98c5f35765752341b3ae
|
||||
Subproject commit 8ee2942570f08d10484bb2328d0d1b0aaaa0367c
|
|
@ -1 +1 @@
|
|||
Subproject commit f6107e2fd9a92b55ac110c7db941e287e2f6604a
|
||||
Subproject commit f2a08d80ccd3c13af304525778df3905f95bd44d
|
|
@ -2194,5 +2194,24 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Change minimum zoom to 0.05f in the node editor. */
|
||||
LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) {
|
||||
LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) {
|
||||
LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) {
|
||||
if (sl->spacetype == SPACE_NODE) {
|
||||
ListBase *regionbase = (sl == area->spacedata.first) ? &area->regionbase :
|
||||
&sl->regionbase;
|
||||
LISTBASE_FOREACH (ARegion *, region, regionbase) {
|
||||
if (region->regiontype == RGN_TYPE_WINDOW) {
|
||||
if (region->v2d.minzoom > 0.05f) {
|
||||
region->v2d.minzoom = 0.05f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -285,7 +285,7 @@ static SpaceLink *node_create(const ScrArea *UNUSED(area), const Scene *UNUSED(s
|
|||
region->v2d.max[0] = 32000.0f;
|
||||
region->v2d.max[1] = 32000.0f;
|
||||
|
||||
region->v2d.minzoom = 0.09f;
|
||||
region->v2d.minzoom = 0.05f;
|
||||
region->v2d.maxzoom = 2.31f;
|
||||
|
||||
region->v2d.scroll = (V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b22d19e47f4d0353082f3d9f30ee8d244c5266d5
|
||||
Subproject commit 2e8c879248822c8e500ed49d79acc605e5aa75b9
|
Loading…
Reference in New Issue