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:
committed by
Harley Acheson
parent
421e1a0c24
commit
ed6e6200d4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user