4f0258f5490555dcf68e170cd7946d2290b1361a
If "Region Overlap" was disabled, the region coordinate calculations would end up placing the header on the bottom, taking space away from the main asset shelf region. This is because the header was abusing the `RGN_SPLIT_PREV` flag a bit, because it gave the desired behavior of hiding the regions together. This worked well because the regions wouldn't actually do the splitting when one used region overlap and the other not. But disabling region overlap would bring the splitting usually enabled with the `RGN_SPLIT_PREV` flag. This PR removes the `RGN_SPLIT_PREV` flag from the asset shelf header. Instead a new flag is introduced to only enable the behavior of `RGN_SPLIT_PREV` of hiding a region together with the previous one. So the header stays at the top of the region, and labels stay visible. The new flag is added to the `ARegion.alignment` flags, even though it's more related to behavior than alignment. However this is more convenient, and keeps it together with related flags.
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
11%
C
6.3%
GLSL
2.2%
CMake
1.3%
Other
1.1%
