UI: Dynamic region size for file browser options
Makes the file browser operator property region (lower left) dynamically sized to content. Previously, the default size would work really badly for file browsers opened in small windows, e.g. to install Add-ons from the preferences window. It would be mostly empty but use lots of space then.
This commit is contained in:
parent
bed8ad6f95
commit
ee0d8426ab
Notes:
blender-bot
2023-03-24 17:05:22 +01:00
Referenced by commit 5aaa00ed55
, Revert "UI: Dynamic region size for file browser options"
Referenced by issue #64610, BMLops inconsistent order
Referenced by issue #64400, x-axis mirror for edit mode and pose mode is the same
Referenced by issue #64333, Sculpt: mirror and other modifiers not visible in workbench sculpt mode
Referenced by issue #64284, Mirroed Collection Intances have flipped normals/face orientation.
Referenced by issue #64245, Joining objects deletes UV map
Referenced by issue #64188, Crash on CTRL-S no changes saved.
Referenced by issue #64161, Crashing using undo and multiple windows
Referenced by issue #64154, Immediate crash when changing the current frame on the timeline
Referenced by issue #62971, File Browser UI
Referenced by issue #62903, uv select edge black bug in blender 2.80 64 bit build
Referenced by issue #62282, Multires: normals not updating when using smooth shading
|
@ -83,6 +83,7 @@ static SpaceLink *file_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scen
|
|||
BLI_addtail(&sfile->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_TOOL_PROPS;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM | RGN_SPLIT_PREV;
|
||||
ar->flag |= RGN_FLAG_DYNAMIC_SIZE;
|
||||
|
||||
/* ui list region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "ui region for file");
|
||||
|
|
Loading…
Reference in New Issue