@@ -641,13 +641,13 @@ impl Fsm for SelectToolFsmState {
641
641
}
642
642
}
643
643
644
- if overlay_context. visibility_settings . transform_cage ( ) {
645
- if let Some ( bounds) = bounds {
646
- let bounding_box_manager = tool_data. bounding_box_manager . get_or_insert ( BoundingBoxManager :: default ( ) ) ;
644
+ if let Some ( bounds) = bounds {
645
+ let bounding_box_manager = tool_data. bounding_box_manager . get_or_insert ( BoundingBoxManager :: default ( ) ) ;
647
646
648
- bounding_box_manager. bounds = bounds;
649
- bounding_box_manager. transform = transform;
650
- bounding_box_manager. transform_tampered = transform_tampered;
647
+ bounding_box_manager. bounds = bounds;
648
+ bounding_box_manager. transform = transform;
649
+ bounding_box_manager. transform_tampered = transform_tampered;
650
+ if overlay_context. visibility_settings . transform_cage ( ) {
651
651
bounding_box_manager. render_overlays ( & mut overlay_context, true ) ;
652
652
}
653
653
} else {
@@ -681,7 +681,7 @@ impl Fsm for SelectToolFsmState {
681
681
682
682
let is_resizing_or_rotating = matches ! ( self , SelectToolFsmState :: ResizingBounds | SelectToolFsmState :: SkewingBounds { .. } | SelectToolFsmState :: RotatingBounds ) ;
683
683
684
- if overlay_context. visibility_settings . transform_cage ( ) && bounds . is_some ( ) {
684
+ if overlay_context. visibility_settings . transform_cage ( ) {
685
685
if let Some ( bounds) = tool_data. bounding_box_manager . as_mut ( ) {
686
686
let edges = bounds. check_selected_edges ( input. mouse . position ) ;
687
687
let is_skewing = matches ! ( self , SelectToolFsmState :: SkewingBounds { .. } ) ;
0 commit comments