Fix regression when rotating a group, resulting in an incorrect transform cage bounding box (#3184)

Revert "Reuse click target bounding boxes for document bounds"

This reverts commit d9e8a71cd0.
This commit is contained in:
Dennis Kobert
2025-09-16 13:41:44 -07:00
committed by GitHub
parent ab55b3225d
commit 390ce023ea
4 changed files with 19 additions and 4 deletions
@@ -333,7 +333,7 @@ impl SnapManager {
return;
}
// We use a loose bounding box here since these are potential candidates which will be filtered later anyway
let Some(bounds) = document.metadata().bounding_box_with_transform(layer, DAffine2::IDENTITY) else {
let Some(bounds) = document.metadata().loose_bounding_box_with_transform(layer, DAffine2::IDENTITY) else {
return;
};
let layer_bounds = document.metadata().transform_to_document(layer) * Quad::from_box(bounds);