UI: Slightly Softer 50% Split Snap

Based on feedback from Alaska, this slightly narrows (softens) the
snapping to 50% when splitting an area without modifiers held.

Pull Request: https://projects.blender.org/blender/blender/pulls/130800
This commit is contained in:
Harley Acheson
2024-11-23 19:28:08 +01:00
committed by Harley Acheson
parent 421e1a0c24
commit ed6e6200d4

View File

@@ -4106,10 +4106,10 @@ static float area_split_factor(bContext *C, sAreaJoinData *jd, const wmEvent *ev
}
else {
/* Slight snap to center when no modifiers are held. */
if (fac >= 0.4375f && fac < 0.5f) {
if (fac >= 0.48f && fac < 0.5f) {
fac = 0.499999f;
}
else if (fac >= 0.5f && fac < 0.5625f) {
else if (fac >= 0.5f && fac < 0.52f) {
fac = 0.500001f;
}
}