Blender Git Loki

Git Commits -> Revision a9fc5be

Revision a9fc5be by Harley Acheson (master)
April 1, 2021, 06:42 (GMT)
Fix T86331: Preferences menu inaccessible until window resize

The RGN_TYPE_EXECUTE region was zero height - with the "Load & Save"
button drawing outside of those bounds - so it didn't respond to events.

This is because the region started off this size and does not change
with simply adding the buttons. Although it has RGN_FLAG_DYNAMIC_SIZE,
delayed reinit of regions is only currently supported on headers.

This gives the execute region an initial (minimum) vertical size but
also makes the region **hidden** by default.

- Showing Prefs as an editor among others it will show the header
but not the execute region.

- Showing the Prefs in a popup window, hides the header region
and shows the execute region.

Ref D10636

Commit Details:

Full Hash: a9fc5be5fa4cad5b12dfbed8ef3babaada96ab2a
Parent Commit: ab652c2
Committed By: Campbell Barton
Lines Changed: +7, -1

2 Modified Paths:

/source/blender/editors/screen/screen_ops.c (+5, -0) (Diff)
/source/blender/editors/space_userpref/space_userpref.c (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021