mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Avoid sometimes breaking the selected layer upon switching away from the Select tool
This commit is contained in:
@@ -1061,19 +1061,6 @@ impl Fsm for SelectToolFsmState {
|
||||
false
|
||||
}
|
||||
});
|
||||
if let Some(mut bounding_box_overlays) = tool_data.bounding_box_manager.take() {
|
||||
let mut selected = Selected::new(
|
||||
&mut bounding_box_overlays.original_transforms,
|
||||
&mut bounding_box_overlays.opposite_pivot,
|
||||
&tool_data.layers_dragging,
|
||||
responses,
|
||||
&document.network_interface,
|
||||
None,
|
||||
&ToolType::Select,
|
||||
);
|
||||
|
||||
selected.revert_operation();
|
||||
}
|
||||
|
||||
responses.add(OverlaysMessage::Draw);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user