Fix 3D View Properties scrollbar being not set to top in startup.blend
This commit is contained in:
parent
6ee0327594
commit
54ac84f2b8
Notes:
blender-bot
2023-02-14 09:07:20 +01:00
Referenced by issue #44984, Clamping in 'texture context -> colors panel' doesn't work under some extreme circumstances. Referenced by issue #44872, Missing UI control in Musgrave texture properties Referenced by issue #44863, Halo shader always makes random rings and lines regardless of the seed value set to 0 Referenced by issue #44737, Spin Tool for U-only SURFACE NURBS not available for use.
|
@ -121,9 +121,15 @@ void BLO_update_defaults_startup_blend(Main *bmain)
|
|||
}
|
||||
}
|
||||
|
||||
/* Remove all stored panels, we want to use defaults (order, open/closed) as defined by UI code here! */
|
||||
for (ar = area->regionbase.first; ar; ar = ar->next) {
|
||||
/* Remove all stored panels, we want to use defaults (order, open/closed) as defined by UI code here! */
|
||||
BLI_freelistN(&ar->panels);
|
||||
|
||||
/* simple fix for 3d view properties scrollbar being not set to top */
|
||||
if (ar->regiontype == RGN_TYPE_UI) {
|
||||
ar->v2d.cur.ymax = ar->v2d.tot.ymax;
|
||||
ar->v2d.cur.ymin = ar->v2d.cur.ymax - ar->winy;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue