mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-07 20:41:50 +00:00
295bd0e165
While Frame shows the picture's frame, the preview projects into that frame rather than the viewport, but Fit Product and the fit on entering Render framed the product for the viewport's free area, so a picture taller than wide cut the product at its sides. The fit now uses the viewport layout seen from the frame (the frame as the viewport, the free area inside it with the usual 16-point margin). Entering Render fitted before the saved setup replaced the draft, so a cold workspace with a portrait setup fitted for the old draft's aspect; the fit now runs once the setup in effect is loaded. render.camera.fit takes the picture's aspect (0.000001 to 1000000) through Camera::fit_aspect, which publishes only a valid fitted camera: an aspect that would divide the distance into infinity is refused and the previous camera, document and undo stay as they were.