Files
effectcraft/crates
Christopher Linnett d2fae0a144 fix: bound Classic 3D depth-of-field blur and reject non-finite focus distances (#2092)
The camera's Set Focus Distance to Layer command compared only 'd <= 0.0', which NaN passes, and two finite but extreme positions can overflow their difference to infinity; a stored non-finite focus distance serializes as null and leaves the project unsavable. Reject it, fall back to the zoom plane in the camera evaluation, and count a non-finite focus or depth as in focus. The Classic 3D blur radius itself was unbounded: a 0%-scaled or very distant layer scales it by up to 1e9, and the padded blur buffer sized from it aborts the process. Cap each plane's radius to a padded buffer that fits the renderer's 16 Mpx layer budget, don't blur planes whose pixels cover under a thousandth of a comp pixel, saturate the padded sizes, and refuse padded buffers past the project's maximum layer size. Regression tests for each guard.
2026-10-22 21:57:41 +08:00
..
2026-10-18 09:35:35 -04:00
2026-10-18 09:35:35 -04:00
…
2026-10-18 09:35:32 -04:00
2026-10-18 09:35:33 -04:00
…
2026-10-18 09:35:34 -04:00
2026-10-18 09:36:05 -04:00
2026-10-18 09:35:33 -04:00
2026-10-18 11:12:44 -04:00