fix: preserve furniture component when clipping protected people
This commit is contained in:
parent
19c4367fb8
commit
2ae5ceb234
@ -1698,8 +1698,6 @@ function filterScaleAdjustStructureComponents(params: {
|
||||
: protectedPersonSide === "auto"
|
||||
? touchesLeft || touchesRight
|
||||
: false;
|
||||
const protectedPersonOverlapRatio =
|
||||
protectedPersonOverlap / Math.max(1, area);
|
||||
const shouldClipProtectedPersonSide =
|
||||
Boolean(protectedPersonMask) &&
|
||||
protectedPersonOverlap > 0 &&
|
||||
@ -1718,11 +1716,6 @@ function filterScaleAdjustStructureComponents(params: {
|
||||
}
|
||||
return false;
|
||||
};
|
||||
const likelyProtectedPersonComponent =
|
||||
Boolean(protectedPersonMask) &&
|
||||
protectedPersonOverlap > 0 &&
|
||||
touchesProtectedPersonSide &&
|
||||
protectedPersonOverlapRatio >= 0.32;
|
||||
const broadTopBackground =
|
||||
touchesTop &&
|
||||
centerYRatio <= 0.45 &&
|
||||
@ -1748,8 +1741,7 @@ function filterScaleAdjustStructureComponents(params: {
|
||||
likelyStructure &&
|
||||
centeredEnough &&
|
||||
!edgeSliver &&
|
||||
!broadTopBackground &&
|
||||
!likelyProtectedPersonComponent
|
||||
!broadTopBackground
|
||||
) {
|
||||
if (fillSurfaceComponent) {
|
||||
for (let fillY = minY; fillY <= maxY; fillY += 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user