mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-10 13:10:55 +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);
|
||||
|
||||
if overlay_context.visibility_settings.transform_cage() && bounds.is_some() {
|
||||
if let Some(bounds) = tool_data.bounding_box_manager.as_mut() {
|
||||
let edges = bounds.check_selected_edges(input.mouse.position);
|
||||
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 can_get_into_other_states = might_resize_or_rotate && !matches!(self, SelectToolFsmState::Dragging { .. });
|
||||
|
||||
Reference in New Issue
Block a user