fix(studio): resolve iOS HEAL auto-reload and grey blob with fast harmonic inpaint

This commit is contained in:
2026-10-14 15:17:57 +07:00
parent ff712384da
commit dfa75f3356
3 changed files with 203 additions and 7 deletions
+1 -1
View File
@@ -1452,7 +1452,7 @@ function clusterHealSpots(
HEAL_FILL_MAX_LEVELS,
Math.max(2, 1 + Math.ceil(Math.log2(2 + span / 2 / widest)))
);
const pad = 3 * HEAL_FILL_BLUR * widest * 2 ** (levelCount - 1);
const pad = Math.max(16, Math.min(160, Math.round(3 * HEAL_FILL_BLUR * widest)));
const boxLeft = Math.max(0, Math.floor(Math.min(...xs) - widest - pad));
const boxTop = Math.max(0, Math.floor(Math.min(...ys) - widest - pad));
const boxRight = Math.min(width, Math.ceil(Math.max(...xs) + widest + pad));