🔧 Fix extrect and selrect debug interactivity

This commit is contained in:
Elena Torro
2025-10-15 10:10:24 +02:00
parent 12e91751c3
commit 3c05067c99
2 changed files with 15 additions and 7 deletions

View File

@@ -808,9 +808,9 @@ impl RenderState {
if self.options.is_debug_visible() {
let shape_selrect_bounds = self.get_shape_selrect_bounds(&shape);
let shape_extrect_bounds = self.get_shape_extrect_bounds(&shape, shapes, modifiers);
debug::render_debug_shape(self, shape_selrect_bounds, shape_extrect_bounds);
debug::render_debug_shape(self, Some(shape_selrect_bounds), None);
}
if apply_to_current_surface {
self.apply_drawing_to_render_canvas(Some(&shape));
}
@@ -1294,6 +1294,12 @@ impl RenderState {
modifiers,
);
if self.options.is_debug_visible() {
let shape_extrect_bounds =
self.get_shape_extrect_bounds(&transformed_element, tree, modifiers);
debug::render_debug_shape(self, None, Some(shape_extrect_bounds));
}
if !is_visible {
continue;
}