mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-05 22:18:12 +08:00
Fix skew triangles showing up when transform cage isn't selected (#2638)
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
db34ac3f53
commit
4487020efb
@@ -650,6 +650,7 @@ impl Fsm for SelectToolFsmState {
|
|||||||
|
|
||||||
let is_resizing_or_rotating = matches!(self, SelectToolFsmState::ResizingBounds | SelectToolFsmState::SkewingBounds { .. } | SelectToolFsmState::RotatingBounds);
|
let is_resizing_or_rotating = matches!(self, SelectToolFsmState::ResizingBounds | SelectToolFsmState::SkewingBounds { .. } | SelectToolFsmState::RotatingBounds);
|
||||||
|
|
||||||
|
if overlay_context.visibility_settings.transform_cage() && bounds.is_some() {
|
||||||
if let Some(bounds) = tool_data.bounding_box_manager.as_mut() {
|
if let Some(bounds) = tool_data.bounding_box_manager.as_mut() {
|
||||||
let edges = bounds.check_selected_edges(input.mouse.position);
|
let edges = bounds.check_selected_edges(input.mouse.position);
|
||||||
let is_skewing = matches!(self, SelectToolFsmState::SkewingBounds { .. });
|
let is_skewing = matches!(self, SelectToolFsmState::SkewingBounds { .. });
|
||||||
@@ -663,6 +664,7 @@ impl Fsm for SelectToolFsmState {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let might_resize_or_rotate = dragging_bounds || rotating_bounds;
|
let might_resize_or_rotate = dragging_bounds || rotating_bounds;
|
||||||
let can_get_into_other_states = might_resize_or_rotate && !matches!(self, SelectToolFsmState::Dragging { .. });
|
let can_get_into_other_states = might_resize_or_rotate && !matches!(self, SelectToolFsmState::Dragging { .. });
|
||||||
|
|||||||
Reference in New Issue
Block a user